Exemple #1
0
 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.*'));
 }
Exemple #2
0
 public function init()
 {
     parent::init();
     $this->setImport(array('yupe.models.*', 'yupe.components.*'));
 }
Exemple #3
0
 public function init()
 {
     parent::init();
     $this->setImport(array('category.models.*', 'category.components.*'));
 }
Exemple #4
0
 public function init()
 {
     parent::init();
     $this->setImport(array('contentblock.models.*', 'contentblock.components.*'));
 }
Exemple #5
0
 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;
     }
 }
Exemple #7
0
 public function init()
 {
     parent::init();
     $this->documentRoot = $_SERVER['DOCUMENT_ROOT'];
     $this->setImport(array('image.models.*', 'image.components.*'));
 }
Exemple #8
0
 public function init()
 {
     parent::init();
     $this->setImport(array('comment.models.*'));
 }