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);
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 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');
 }
Ejemplo n.º 11
0
 /**
  * 
  * @param Event $event
  */
 public function beforeFilter(Event $event)
 {
     parent::beforeFilter($event);
     $this->Auth->allow(['login']);
     $this->Auth->deny(['add']);
 }
Ejemplo n.º 12
0
 /**
  * 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']);
 }
Ejemplo n.º 15
0
 public function initialize()
 {
     parent::initialize();
 }