try to add 'Session' to your components…
public $components = array('Session', 'Cookie', 'RequestHandler');
Andras Kende
On Sep 23, 2012, at 2:55 PM, Chris <chris69m@yahoo.com> wrote:
hi guys,...having a problem to migrate to a new version 2.2.2in 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 errorFatal error: Call to a member function check() on a non-object in /home/xachkaa/hamayk.com/html/app/Controller/AppController.php on line 139can 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 cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment