/** * Initializes the application component. * This method overrides the parent implementation by preprocessing * the user request data. */ public function init() { parent::init(); if ($this->basePath === null) { $this->basePath = Yii::getPathOfAlias('application.messages'); } }
/** * Constructor * Sets the default basePath to webroot.themes.{{themename}} */ public function init() { Yii::app()->language = Cii::setApplicationLanguage(); parent::init(); if (isset(Yii::app()->theme) && isset(Yii::app()->theme->name)) { $this->basePath = Yii::getPathOfAlias('base.themes.' . Yii::app()->theme->name . '.messages'); } else { if (isset(Yii::app()->controller->module->id)) { $this->basePath = Yii::getPathOfAlias('application.modules.' . Yii::app()->controller->module->id); } else { $this->basePath = Yii::getPathOfAlias('application.modules.install'); } } }
/** * */ public function init() { $this->basePath = craft()->path->getFrameworkPath() . 'messages/'; parent::init(); }
/** * Initializes the application component. * This method overrides the parent implementation by preprocessing * the user request data. */ public function init() { $this->basePath = Yii::getPathOfAlias('common.messages'); parent::init(); }