public function init() { parent::init(); if (!is_array($this->backEnd) || !count($this->backEnd) || !in_array('db', $this->backEnd) && !in_array('email', $this->backEnd)) { throw new CException(Yii::t('feedback', 'Укажите корректное значение для свойтсва application.modules.feedback.FeedBackModule.backEnd - "db" и/или "email"!')); } if (in_array('email', $this->backEnd) && (!is_array($this->emails) || !count($this->emails))) { throw new CException(Yii::t('feedback', 'Укажите email для обратной связи! application.modules.feedback.FeedBackModule.emails')); } $this->setImport(array('feedback.models.*', 'feedback.components.*')); }
public function init() { parent::init(); $this->setImport(array('yupe.models.*', 'yupe.components.*')); }
public function init() { parent::init(); $this->setImport(array('category.models.*', 'category.components.*')); }
public function init() { parent::init(); $this->setImport(array('contentblock.models.*', 'contentblock.components.*')); }
public function init() { parent::init(); $this->setImport(array('application.modules.page.models.*', 'application.modules.page.components.*', 'application.modules.page.components.widgets.*')); }
public function beforeControllerAction($controller, $action) { if (parent::beforeControllerAction($controller, $action)) { // this method is called before any module controller action is performed // you may place customized code here return true; } else { return false; } }
public function init() { parent::init(); $this->documentRoot = $_SERVER['DOCUMENT_ROOT']; $this->setImport(array('image.models.*', 'image.components.*')); }
public function init() { parent::init(); $this->setImport(array('comment.models.*')); }