public function beforeFilter()
 {
     parent::beforeFilter();
     $this->__CloggyFileUpload = $this->Components->load('Cloggy.CloggyFileUpload');
     $this->__CloggyBlogImport = $this->Components->load('CloggyBlogImport');
     $this->__CloggyBlogImport->buildPath();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     //load additional helpers
     $this->helpers[] = 'Form';
     //setup pagination
     $this->paginate = array('CloggyUserRole' => array('limit' => 10, 'contain' => array('CloggyUser'), 'order' => array('role_name' => 'asc')));
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     App::uses('CloggyModuleConfigReader', 'CustomConfigure');
     Configure::config('cloggy', new CloggyModuleConfigReader('CloggySearch'));
     //disable auto render
     $this->autoRender = false;
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     //load additional helpers
     $this->helpers[] = 'Time';
     $this->helpers[] = 'Text';
     //setup pagination
     $this->paginate = array('CloggyUser' => array('limit' => 10, 'contain' => array('CloggyUserRole'), 'order' => array('user_created' => 'desc')));
     $this->__mergePaginateSortBy();
 }
Пример #5
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     //allow all
     $this->Auth->allow();
     /*
      * check if has users
      */
     $this->_userCount = $this->CloggyUser->find('count', array('contain' => false));
     $this->_userId = $this->Auth->user('id');
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->CloggySearchSchema = $this->Components->load('CloggySearchSchema');
     /*
      * disable security check for upload image
      */
     if ($this->request->params['action'] == 'delete_all_table') {
         $this->Components->disable('Security');
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     if (!$this->request->is('ajax')) {
         $this->redirect('/');
     }
     $this->autoRender = false;
     /*
      * disable SecurityComponent
      */
     $this->Components->disable('Security');
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     //load additional helpers
     $this->helpers[] = 'Form';
     //setup pagination
     $this->paginate = array('CloggyUserPerm' => array('limit' => 10, 'contain' => array('CloggyUserRole')));
     /*
      * disable security check when create new permission
      */
     if ($this->request->params['action'] == 'create') {
         $this->Components->disable('Security');
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     App::uses('CloggyModuleConfigReader', 'CustomConfigure');
     Configure::config('cloggy', new CloggyModuleConfigReader('CloggySearch'));
 }
Пример #10
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->_user = $this->Auth->user();
 }
Пример #13
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->deny('*');
 }