/** * Module constructor - Builds the initial module data * * @author vadim */ public function init() { // Set error handler Yii::app()->errorHandler->errorAction = 'site/error/error'; /* Make sure we run the master module init function */ parent::init(); }
/** * Module constructor - Builds the initial module data * * @author vadim */ public function init() { Yii::app()->theme = $this->theme; // Set theme url Yii::app()->themeManager->setBaseUrl(Yii::app()->theme->baseUrl); Yii::app()->themeManager->setBasePath(Yii::app()->theme->basePath); // Set error handler Yii::app()->errorHandler->errorAction = 'admin/error/error'; /* Make sure we run the master module init function */ parent::init(); }
public function init() { Yii::trace('Loaded "users" module.'); $this->setImport(array($this->id . '.models.*', $this->id . '.components.*')); parent::init(); }