public function beforeAction($action)
 {
     if (!$this->installed) {
         $this->dbInstall();
     }
     return parent::beforeAction($action);
 }
Exemple #2
0
 public function updateNotice()
 {
     $moduleName = \yii\easyii\components\Module::getModuleName(get_class($this->owner));
     if ($module = Module::findOne(['name' => $moduleName])) {
         $module->notice = call_user_func($this->callback);
         $module->update();
     }
 }
Exemple #3
0
 public function init()
 {
     parent::init();
     $this->module = Module::getModuleName(self::className());
     Module::registerTranslations($this->module);
 }
 public function init()
 {
     parent::init();
 }