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