you should always mention the current cakephp version
I am assuming however that you use 1.3 (due to App::import)

yes, you can. quite easily as a matter of fact.
inside your component, all you have to do:

$this->controller->helpers[] = 'MyPluginName.MyHelperName';
or
$controller->helpers[] = 'MyPluginName.MyHelperName';
(depending on where you are)

dont pass the helpers in this set. bad idea :)



On 9 Dez., 00:51, Toby G <[email protected]> wrote:
> 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to