for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Apps\Controller\Install;
use Apps\Model\Install\Main\EntityCheck;
use Apps\Model\Install\Main\FormInstall;
use Ffcms\Core\App;
use Ffcms\Core\Arch\Controller;
use Ffcms\Core\Exception\ForbiddenException;
use Ffcms\Core\Helper\FileSystem\File;
class Main extends Controller
{
public function actionIndex()
if (File::exist('/Private/Install/install.lock')) {
throw new ForbiddenException('Installer is blocked! If you want to continue delete file /Private/Installer/install.lock');
}
$model = new EntityCheck();
$this->response = App::$View->render('index', [
'model' => $model
]);
public function actionInstall()
$model = new FormInstall();
if ($model->send() && $model->validate()) {
$model->make();
App::$Response->redirect('main/success');
$this->response = App::$View->render('install', [
'model' => $model->export()
public function actionSuccess()
$this->response = App::$View->render('success');