Ejemplo n.º 1
0
 /**
  * Prequisites action checks application requirement using the SelfTest
  * Libary
  *
  * (Step 2)
  */
 public function actionPrerequisites()
 {
     $checks = SelfTest::getResults();
     $hasError = false;
     foreach ($checks as $check) {
         if ($check['state'] == 'ERROR') {
             $hasError = true;
         }
     }
     // Render Template
     $this->render('prerequisites', array('checks' => $checks, 'hasError' => $hasError));
 }
Ejemplo n.º 2
0
 /**
  * Self Test
  */
 public function actionSelfTest()
 {
     Yii::import('application.commands.shell.ZMigrateCommand');
     $migrate = ZMigrateCommand::AutoMigrate();
     $this->render('selftest', array('checks' => SelfTest::getResults(), 'migrate' => $migrate));
 }