public function afterAction($action) { if (isset(Yii::app()->params->save_site_actions) && Yii::app()->params->save_site_actions) { MainModule::saveSiteAction(); } }
protected function postFilter($filterChain) { if (isset(Yii::app()->params['save_site_actions']) && Yii::app()->params['save_site_actions']) { MainModule::saveSiteAction(); } return true; }
public function afterAction($action) { if (isset(Yii::app()->params->save_site_actions) && Yii::app()->params->save_site_actions) { MainModule::saveSiteAction(); } if (!isset($_GET['modal'])) { //не работает $this->request->prev_url = $this->request->url; } }
public function beforeAction($action) { $item_name = AuthItem::constructName(Yii::app()->controller->id, $action->id); if (!RbacModule::isAllow($item_name)) { $this->forbidden(); } if (isset(Yii::app()->params->save_site_actions) && Yii::app()->params->save_site_actions) { MainModule::saveSiteAction(); } $this->setTitle($action); $this->_setMetaTags($action); return true; }
public function init() { Yii::app()->theme = 'sb-admin'; parent::init(); }