Sunday, July 18, 2010

Re: Custom helpers not loaded

Maybe it's stupid, but is this error on page of controller you posted
$helpers? If this helper is used in layout, you should have it listed
in AppController $helpers to make available for any controller.

On Jul 16, 6:18 pm, Ragnis <ragnis.ar...@gmail.com> wrote:
> After I moved from a shared hosting to a VPS cake 1.3.2 does not load
> custom helpers.
> All core helpers are loaded, but not my custom helpers.
>
> I my controller i have
> public $helpers = array('Session', 'Html', 'Form', 'Access',
> 'Recaptcha');
>
> When i try to use a custom helper from view, i get an error message:
> Fatal error: Call to undefined method stdClass::setCurrentUserData()
> in /var/www/***.git/app/views/layouts/default.ctp on line 5
>
> I also used debug($this); in my view and my custom helpers aren't
> shown there either.
>
> It is also possible that the problem is somewhere in my php.ini.
> My php.ini file:http://gist.github.com/478241
> And i'm using php version 5.3.x

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