Can a plugin component auto-load a helper
Hi there,
I've been attempting to get a plugin component auto-load the plugin's
helper file. I have added it to the controller's helper array, but
it's not loading the helper into view (under $this->Helper), so I
think that the helpers have already been loaded prior to me adding the
plugin helper to the array.
Is there any way of doing this safely? I did think I could
App::import the helper in the plugin & then pass it using $this-
>controller->set(), but it feels like too much of a hack, & does not
conform to naming conventions.
Any help welcome.
Thanks,
T
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home