php - Authorization adapter "actions" was not found. CakePHP -


i use cakephp auth componenet in web site. code works fine in windows after uploading linux online host, give message authorization adapter "actions" not found. cakephp

any idea regarding problem ?

      <?php     app::uses('appcontroller', 'controller');       class appcontroller extends controller {            public  $mobile;         public $components = array(             'acl',             'auth' => array(                 'authorize' => array(                     'actions' => array('actionpath' => 'controllers/'),                 ),             ),             'session',             'requesthandler',         );         public $helpers = array('html', 'form', 'session', 'js' => array('jquery'));           public function beforefilter() {             parent::beforefilter();    // print_r($this->request); die;     if ($this->request->is('post') && isset($this->request['data']['access_token'])) {              app::uses('user', 'model');             $this->user = new user();                   // print_r($this->request['data']['access_token']);die;                 $this->mobile = $this->user->authenticatemobile($this->request['data']['access_token']);               }    //        print_r('appcont'); //        print_r($this->request); //        die;         $this->auth->authenticate = array(             authcomponent::all => array('usermodel' => 'user'),             //'changeeg',             'form'          );            //configure authcomponent         $this->auth->authorize = 'actions';          $this->auth->loginerror = "wrong credentials";         $this->auth->autherror = "this part of website protected.";          $this->auth->loginaction = array('controller' => 'users', 'action' => 'login');          $this->auth->loginredirect = array('controller' => 'feedbacks', 'action' => 'add');         $this->auth->logoutredirect = array('controller' => 'home', 'action' => 'index');   } 

}

i had de same problem, camelcased mistake,

instead write $this->auth->authorize = 'controller';

i wrote $this->auth->authorize = 'controller'.

in windows works ok, in linux not.

see post https://groups.google.com/forum/?fromgroups#!topic/cake-php/wzgfoj4ayx0


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -