public function actionPrerequisites()
	{
		$checks = SystemCheck::getResults();

		$hasError = FALSE;
		foreach ($checks as $check) {
			if ($check['state'] == 'ERROR')
				$hasError = TRUE;
		}

		// Render template
		return $this->render('prerequisites', ['checks' => $checks, 'hasError' => $hasError]);
	}
public function actionPrerequisites()
	{
		$checks = SystemCheck::getResults();

		$hasError = FALSE;
		foreach ($checks as $check) {
			if ($check['state'] == 'ERROR')
				$hasError = TRUE;
		}

		// Render template
		return $this->render('prerequisites', ['checks' => $checks, 'hasError' => $hasError]);
	}
public function actionPrerequisites ( ) { $ checks = SystemCheck :: getResults ( ) ; $ hasError = FALSE ; foreach ( $ checks as $ check ) { if ( $ check [ 'state' ] == 'ERROR' ) $ hasError = TRUE ; } // Render template return $ this -> render ( 'prerequisites' , [ 'checks' => $ checks , 'hasError' => $ hasError ] ) ; }
Prerequisites action checks application requirement using the SystemCheck
Library

(Step 2)
Prerequisites action checks application requirement using the SystemCheck Library