/** * 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)); }
/** * Self Test */ public function actionSelfTest() { Yii::import('application.commands.shell.ZMigrateCommand'); $migrate = ZMigrateCommand::AutoMigrate(); $this->render('selftest', array('checks' => SelfTest::getResults(), 'migrate' => $migrate)); }