/**
  * @inheritdoc
  */
 public function init()
 {
     $this->_module = Yii::$app->getModule('redactorjs');
     if ($this->_module === null) {
         throw new InvalidConfigException("The module 'redactorjs' was not found. Ensure you have setup the 'redactorjs' module in your Yii configuration file.");
     }
     parent::init();
 }
 /**
  * [init description]
  * @return [type] [description]
  */
 public function init()
 {
     parent::init();
     // Set theme.
     // @todo: Move to config.
     $this->view->theme = new \yii\base\Theme(['pathMap' => ['@app/views' => '@app/themes/klangfarbe'], 'basePath' => '@app/themes/klangfarbe', 'baseUrl' => '@web/themes/klangfarbe']);
     // Force theming.
     $this->setViewPath('@app/themes/klangfarbe/' . $this->id);
     // Define entry point.
     $this->resolvePathRequested();
 }
 /**
  * [init description]
  * @return [type] [description]
  */
 public function init()
 {
     parent::init();
     // Set theme.
     // @todo: Move to config.
     $this->view->theme = new \yii\base\Theme(['pathMap' => ['@app/views' => '@app/themes/' . \giantbits\crelish\Module::getInstance()->theme], 'basePath' => '@app/themes/' . \giantbits\crelish\Module::getInstance()->theme, 'baseUrl' => '@web/themes/' . \giantbits\crelish\Module::getInstance()->theme]);
     // Force theming.
     $this->setViewPath('@app/themes/' . \giantbits\crelish\Module::getInstance()->theme . '/' . $this->id);
     // Define entry point.
     $this->resolvePathRequested();
 }
Пример #4
0
 public function init()
 {
     parent::init();
     // TODO: Change the autogenerated stub
 }
Пример #5
0
 public function init()
 {
     MultiLanguageHelper::catchLanguage();
     parent::init();
 }