Example #1
0
 public function __construct($controller, $params = null)
 {
     parent::__construct($controller, $params);
     // token csrf
     /*
     $formToken = $this->getController()->Request->getData("token_csrf");
     $sessionToken = $this->getController()->Session->read("Form");
     if(!empty($formToken) && $formToken!=$sessionToken)
     	Error::render(6, "Fail CSRF detected !");
     
     $token = md5(Config::read("key").uniqid('csrf_'));
     $this->getController()->Session->write("Form", $token);
     */
 }
Example #2
0
 public function __construct($controller, $params = null)
 {
     parent::__construct($controller, $params);
 }
Example #3
0
 public function __construct($controller, $params)
 {
     parent::__construct($controller, $params);
     $this->_cache = new Cache("bdd", 60);
     $this->setRange($params["range"]);
 }