예제 #1
0
 public function actionDelete($module)
 {
     if (ModuleManager::delete($module)) {
         echo Console::color("Success.", Console::FOREGROUND_GREEN) . PHP_EOL;
     } else {
         echo Console::color("Failed.", Console::FOREGROUND_RED) . PHP_EOL;
     }
 }
예제 #2
0
 public function actionUpdate($name, $version = null)
 {
     $version = ModuleManager::update($name, $version);
     if ($version) {
         Mindy::app()->flash->success('Success');
     } else {
         Mindy::app()->flash->error('Failed');
     }
     $this->redirect('core.module_list');
 }