Have to reply to myself again.
I was using $this->Session->check('User') from __construct function.
Seems like helpers are not available in helper constructors. But why?
Thank you.
On 25 апр, 15:19, Sergei <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there a way to use session helper from my custom helper?
>
> Tried to write
> var $helpers = array('Session');
>
> But that doesn't work. When using
>
> $this->Session->check('User')
>
> for example,
>
> I get an error:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---