public function init() { $this->api = new SimalandAPI(); $this->api->setCurlPause(Yii::app()->getModule('storeswap')->api_pause); $this->api->attachBehavior('sseHerald', 'application.modules.storeswap.components.behaviors.SseHeraldBehavior'); return parent::init(); }
/** * Функция инициализации: * * @return nothing **/ public function init() { parent::init(); if (!isset(Yii::app()->session['InstallForm'])) { Yii::app()->session['InstallForm'] = []; } $this->session['InstallForm'] = Yii::app()->session['InstallForm']; $this->pageTitle = Yii::t('InstallModule.install', 'installation of Yupe!'); $this->layout = 'application.modules.install.views.layouts.column2'; }
public function init() { parent::init(); // Выборка категорий/атрибутов $this->categoriesA = AttributeCategory::model()->is_a()->with('attrs')->findAll(); $this->categoriesB = AttributeCategory::model()->is_b()->with('attrs')->findAll(); // Выборка списка мест $placeCategory = AttributeCategory::model()->find('t.code = :code', array(':code' => AttributeCategory::PLACES_CATEGORY_CODE)); $this->places = Attribute::model()->category($placeCategory->id)->sortByCode()->findAll(); $this->operations = array('and' => 'и присутствует', 'and_not' => 'и отсутствует', 'or' => 'или'); $this->cells = array('sameСell' => 'Та же ячейка', 'anotherOpenCellInSameColumn' => 'Другая открытая ячейка в том же столпе', 'rightAndLeftCells' => 'Ячейки, стоящие справа и слева', 'notRightAndLeftCells' => 'Любая ячейка, кроме стоящих непосредственно слева и справа', 'anotherCell' => 'Любая другая ячейка', 'destinyPillars' => 'Столпы судьбы', 'currentLuckPillar' => 'Текущий столп удачи', 'eventPillars' => 'Столпы рассматриваемой даты'); }
/** * */ public function init() { $this->productRepository = Yii::app()->getComponent('productRepository'); parent::init(); }
/** * Инициализация контроллера: * * @return parent::init() **/ public function init() { $this->menu = array(array('icon' => 'file', 'label' => Yii::t('DocsModule.docs', 'About module'), 'url' => array('/docs/docsBackend/index')), '', array('label' => Yii::t('DocsModule.docs', 'Files'), 'items' => $this->module->renderProjectDocs())); return parent::init(); }
/** * Инициализируемся, подключаем ZendLucene: * */ public function init() { Yii::import('application.modules.zendsearch.vendors.*'); require_once 'Zend/Search/Lucene.php'; return parent::init(); }
public function init() { parent::init(); $this->attachEventHandler('onSuccessRegistration', array('UserManagerListener', 'onSuccessRegistration')); }
/** * Инициализация контроллера: * * @return parent::init() **/ public function init() { $this->menu = [['icon' => 'fa fa-fw fa-file', 'label' => Yii::t('DocsModule.docs', 'About module'), 'url' => ['/docs/docsBackend/index']], '', ['label' => Yii::t('DocsModule.docs', 'Files'), 'items' => $this->module->renderProjectDocs()]]; return parent::init(); }