public function init() { if (!Yii::app()->params['local']) { Yii::app()->end(); } parent::init(); }
/** * Initializes the controller. */ public function init() { parent::init(); $this->_authorizer = $this->module->getAuthorizer(); $this->layout = $this->module->layout; $this->defaultAction = 'view'; // Register the scripts $this->module->registerScripts(); }
public function init() { if (Yii::app()->params['newInstall']) { $this->redirect(Yii::app()->createAbsoluteUrl('install')); Yii::app()->end(); //} } return parent::init(); }