Wednesday, July 21, 2010

Re: Using plugin Helpers in main app doesn't seem to work

cake1.3?

try
<?php echo $this->Helpername->out();?>

On 21 Jul., 11:35, kadanis <evad.ba...@gmail.com> wrote:
> Don't know if its me or cake, but I can't get a helper from the plugin
> to load in the main app.
>
> plugin helper is in /plugins/pluginname/views/helpers/helpername.php
>
> class HelpernameHelper extends PluginnameAppHelper {
>    function out(){
>        return $this->output('testing out method from plugin');
>    }
>
> }
>
> in app app_controller
>
> var $helpers = array('Pluginname.Helpername');
>
> in app default layout
>
> <? echo $helpername->out();?>
>
> error I'm getting is
>
> Undefined variable $helpername in default.ctp
> Fatal Error: call to function out() on a non-object.
>
> Anyone see what I'm doing wrong???

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate