Ejemplo n.º 1
0
 public function before()
 {
     parent::before();
     $session = Session::instance();
     $session->set("auth_redirect", $_SERVER['REQUEST_URI']);
     if (!Auth::instance()->get_user()) {
         HTTP::redirect('Auth');
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->tareas = new classPDO();
 }
Ejemplo n.º 3
0
 /**
  * @author Karen Hernández <*****@*****.**>
  * @version 1.0
  * @copyright karhega 2015
  **/
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 4
0
 function beforeFilter()
 {
     parent::beforeFilter();
     //$this->Auth->allowedActions = array('*');
 }
Ejemplo n.º 5
0
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow(array('index'));
 }
 public function __construct()
 {
     parent::__construct();
     $this->usuarios = new classPDO();
 }
 public function __construct()
 {
     parent::__construct();
     $this->categorias = new classPDO();
 }
Ejemplo n.º 8
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow("index", "view", "comment");
 }