public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->loadModel('JcApiModel');
     $this->titleLayout = __('Production');
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->loadModel('NewsCategories');
     $this->loadModel('Pages');
     $this->titleLayout = __('Menu');
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->loadModel('TypeCompanies');
     $this->loadModel('TypeBusiness');
     $this->loadModel('JcApiModel');
     $this->loadModel('EmailStacks');
     $this->loadModel('Productions');
     $this->loadModel('CompanyInquiries');
     $this->titleLayout = __('List of Member');
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->loadModel('LogUsers');
     $this->user_db = $this->Users->find('all');
     $this->session = $this->request->session();
     if ($this->user_db->toArray()) {
         $this->session->delete('User.CheckData');
         $this->Auth->allow(['login']);
     } else {
         $this->session->write('User.CheckData', 1);
         $this->Auth->allow(['add']);
     }
     if ($this->session->check('User.CheckPassword')) {
         $this->Auth->allow(['edit_password']);
     }
     $this->set('active_menu', 'users');
     $this->current_user = $this->Auth->user();
 }
 /**
  * beforeFilter
  * @param \Admin\Controller\Event $event
  */
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
 }
Exemple #6
0
 public function onDispatch(\Zend\Mvc\MvcEvent $e)
 {
     $this->_view->setVariables(array('objectMain' => $this->_objectMain, 'modelAlias' => $this->_modelAlias));
     return parent::onDispatch($e);
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->titleLayout = __('Activity Category');
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->titleLayout = __('Member Comment');
 }
Exemple #9
0
 public function onDispatch(\Zend\Mvc\MvcEvent $e)
 {
     return parent::onDispatch($e);
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->titleLayout = __('Classification of company');
 }
 /**
  * 
  * @param Event $event
  */
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->Auth->allow(['login']);
     $this->Auth->deny(['add']);
 }
 /**
  * beforeFilter event
  *
  * @param Event $event cake event
  * @return void
  */
 public function beforeFilter(\Cake\Event\Event $event)
 {
     $this->loadModel('Users');
     parent::beforeFilter($event);
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     // TODO: Change the autogenerated stub
     $this->titleLayout = __('Type Business');
 }
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->Auth->allow(['registerCustomer', 'activate']);
 }
 public function initialize()
 {
     parent::initialize();
 }