Sunday, September 23, 2012

Session check problem

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 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.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate