public function init() { if (!isset($this->controller->yupe->bootstrap)) { $this->controller->yupe->getComponent('bootstrap'); } parent::init(); }
/** * @throws CException */ public function init() { if (!$this->blog || !$this->user) { throw new CException(Yii::t('BlogModule.blog', 'Set "blogId" and "user" !')); } parent::init(); }
/** * */ public function init() { $this->assetsUrl = Yii::app()->getAssetManager()->publish(__DIR__ . '/assets'); Yii::app()->getClientScript()->registerScriptFile($this->assetsUrl . '/js/jquery.colorbox-min.js'); Yii::app()->getClientScript()->registerCssFile($this->assetsUrl . '/colorbox.css'); parent::init(); }
/** * */ public function init() { $this->assetsUrl = Yii::app()->getAssetManager()->publish(__DIR__ . DIRECTORY_SEPARATOR . 'assets'); Yii::app()->getClientScript()->registerScriptFile($this->assetsUrl . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'jquery.colorbox-min.js'); Yii::app()->getClientScript()->registerCssFile($this->assetsUrl . DIRECTORY_SEPARATOR . 'colorbox.css'); parent::init(); }
/** * */ public function init() { parent::init(); $this->producerRepository = Yii::app()->getComponent('producerRepository'); if (!$this->title) { $this->title = Yii::t('StoreModule.store', 'Producers list'); } }
public function init() { if (is_string($this->attribute)) { $this->attribute = Attribute::model()->findByAttributes(['name' => $this->attribute]); } if (!$this->attribute instanceof Attribute || $this->attribute->type != Attribute::TYPE_NUMBER) { throw new Exception('Атрибут не найден или неправильного типа'); } parent::init(); }
/** * @throws Exception */ public function init() { if (is_string($this->attribute)) { $this->attribute = Attribute::model()->findByAttributes(['name' => $this->attribute]); } if (!$this->attribute instanceof Attribute || !$this->attribute->isMultipleValues()) { throw new Exception(Yii::t('StoreModulle.store', 'Attribute error!')); } parent::init(); }
/** * @throws CException */ public function init() { Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.callback.views.web') . '/callback.js'), CClientScript::POS_END); parent::init(); }
/** * */ public function init() { Yii::app()->getClientScript()->registerScriptFile(Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.modules.favorite.view.web') . '/favorite.js'), CClientScript::POS_END); $this->favorite = Yii::app()->getComponent('favorite'); parent::init(); }
/** * */ public function init() { $this->categoryRepository = Yii::app()->getComponent('categoryRepository'); $this->productRepository = Yii::app()->getComponent('productRepository'); parent::init(); }
/** * */ public function init() { parent::init(); $this->attributesRepository = new AttributesRepository(); }