예제 #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.*'));
 }
예제 #2
0
파일: YupeModule.php 프로젝트: RSol/yupe
 public function init()
 {
     parent::init();
     $this->setImport(array('yupe.models.*', 'yupe.components.*'));
 }
예제 #3
0
 public function init()
 {
     parent::init();
     $this->setImport(array('category.models.*', 'category.components.*'));
 }
예제 #4
0
 public function init()
 {
     parent::init();
     $this->setImport(array('contentblock.models.*', 'contentblock.components.*'));
 }
예제 #5
0
파일: PageModule.php 프로젝트: RSol/yupe
 public function init()
 {
     parent::init();
     $this->setImport(array('application.modules.page.models.*', 'application.modules.page.components.*', 'application.modules.page.components.widgets.*'));
 }
예제 #6
0
 public function init()
 {
     parent::init();
 }
예제 #7
0
파일: ImageModule.php 프로젝트: RSol/yupe
 public function init()
 {
     parent::init();
     $this->documentRoot = $_SERVER['DOCUMENT_ROOT'];
     $this->setImport(array('image.models.*', 'image.components.*'));
 }
예제 #8
0
파일: CommentModule.php 프로젝트: RSol/yupe
 public function init()
 {
     parent::init();
     $this->setImport(array('comment.models.*'));
 }