public function beforeFilter()
 {
     parent::beforeFilter();
     if (!empty($this->params['pass'][0])) {
         $pid = $this->params['pass'][0];
         $this->place = $this->checkPlaceValid($pid);
     }
 }
Esempio n. 2
0
 /**
  * beforeFilter callback
  *
  * @return void
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->set('model', $this->modelClass);
 }