try to add 'Session' to your components…
public $components = array('Session', 'Cookie', 'RequestHandler');
Andras Kende
http://www.kende.com
On Sep 23, 2012, at 2:55 PM, Chris <[email protected]> wrote:
> hi guys,...
> having a problem to migrate to a new version 2.2.2
> in AppController I have:
>
> App::uses('Controller', 'Controller', 'CakeEmail', 'Network/Email');
> class AppController extends Controller {
>
> static $FLASH_ALLOWED_TYPES = array('error', 'valid', 'notice');
>
> var $helpers = array('Javascript', 'Ajax', 'User', 'Session', 'App');
> var $components = array('Cookie', 'RequestHandler');
>
>
> function beforeFilter()
> {
>
> if($this->Session->check('user'))
> $this->user = $this->Session->read('user');
>
> and it gives me an error
> Fatal error: Call to a member function check() on a non-object in
> /home/xachkaa/hamayk.com/html/app/Controller/AppController.php on line 139
>
> can anybody tells me what's wrong with it please ...
>
> thanks
>
>
>
> --
> Like Us on FacekBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> 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].
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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].
Visit this group at http://groups.google.com/group/cake-php?hl=en.