public function prepare()
 {
     parent::prepare();
     var_dump($this->files);
     exit;
     $templatePath = $this->templatePath;
     $modulePath = $this->modulePath;
     $moduleTemplateFile = $templatePath . DIRECTORY_SEPARATOR . 'translation.php';
     $this->files[] = new CCodeFile($modulePath . '/' . $this->moduleClass . '.php', $this->render($moduleTemplateFile));
 }
Example #2
0
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('moduleID' => 'Модель (название)', 'moduleCategory' => 'Категория модуля', 'moduleIcon' => 'Иконка', 'generateMigration' => 'Сгенерировать файл миграции'));
 }