Exemple #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->setAliases(['@cmcategories' => dirname(__FILE__)]);
     \Yii::$app->i18n->translations['cm-categories'] = ['class' => 'yii\\i18n\\PhpMessageSource', 'sourceLanguage' => 'en-US', 'basePath' => '@frenzelgmbh/cmcategories/messages'];
     //get the displayed view and register the needed assets
     //as we have no view in this context we need to make the way over the $app->view
     categoriesAsset::register(\Yii::$app->view);
 }
 /**
  * [init description]
  * @return bool the result of the parent init call
  */
 public function init()
 {
     \frenzelgmbh\cmcategories\categoriesAsset::register(\Yii::$app->view);
     return parent::init();
 }