public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, $name = null, $eventManager = null, $components = null)
 {
     parent::__construct($request, $response, $name, $eventManager, $components);
     $this->set('title', 'Caixa Movimentos');
     $this->set('bt_consultar_acao', false);
     $this->set('bt_cadastrar_acao', false);
     $this->set('bt_excluir_acao', false);
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $app = App::getInstance();
     $auth = new DBAuth($app->getDb());
     if (!$auth->logged()) {
         $this->forbidden();
     }
 }
 public function __construct(\Core\Request $request, \Core\Session $session, \Core\Auth $auth)
 {
     parent::__construct($request, $session, $auth);
     $this->layout = 'painel';
     $this->set('titulo', 'Título não Informado');
     if (!$this->Auth->check()) {
         $this->redirect('/home/logout');
     }
 }
Exemple #4
0
 public function __construct()
 {
     parent::__construct();
     $app = App::getInstance();
     $auth = new DBAuth($app->getDb());
     if (!$auth->logged()) {
         $this->forbidden();
     }
     /*$logged = false;
       $this->render('templates.default', compact('logged'));*/
 }
Exemple #5
0
 /**
  * Constructor
  *
  * @param \Cake\Network\Request|null $request Request instance.
  * @param \Cake\Network\Response|null $response Response instance.
  */
 public function __construct($request = null, $response = null)
 {
     parent::__construct($request, $response);
     if (count(Router::extensions()) && !isset($this->RequestHandler)) {
         $this->loadComponent('RequestHandler');
     }
     $eventManager = $this->eventManager();
     if (isset($this->Auth)) {
         $eventManager->off($this->Auth);
     }
     if (isset($this->Security)) {
         $eventManager->off($this->Security);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Post');
     $this->loadModel('Category');
 }
 public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, $name = null, $eventManager = null, $components = null)
 {
     parent::__construct($request, $response, $name, $eventManager, $components);
     $this->set('title', 'Grupos');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Actuality');
 }
 public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, $name = null, $eventManager = null, $components = null)
 {
     parent::__construct($request, $response, $name, $eventManager, $components);
     $this->set('title', 'Vendedores');
     $this->loadModel('Pessoas');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Users');
     $this->loadModel('Villes');
 }
 public function __construct(\Core\Request $request, \Core\Session $session, \Core\Auth $auth)
 {
     parent::__construct($request, $session, $auth);
     $this->loadModel('Produtos');
 }
Exemple #12
0
 public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, $name = null, $eventManager = null, $components = null)
 {
     parent::__construct($request, $response, $name, $eventManager, $components);
     $this->set(['menu' => $this->menu, 'currentPageName' => $this->request->here]);
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Articles');
     $this->loadModel('Categorie');
 }
Exemple #14
0
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('Page');
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel(['Users', 'Posts']);
 }
 public function __construct(\Cake\Network\Request $request = null, \Cake\Network\Response $response = null, $name = null, $eventManager = null)
 {
     parent::__construct($request, $response, $name, $eventManager);
     debug('thing');
 }