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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en