Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
29 | public function actionInstall() |
||
30 | { |
||
31 | if (File::exist('/Private/Install/install.lock')) { |
||
32 | throw new ForbiddenException('Installer is blocked! If you want to continue delete file /Private/Installer/install.lock'); |
||
33 | } |
||
34 | |||
35 | $model = new FormInstall(); |
||
36 | if ($model->send() && $model->validate()) { |
||
37 | $model->make(); |
||
38 | App::$Response->redirect('main/success'); |
||
39 | } |
||
40 | |||
41 | $this->response = App::$View->render('install', [ |
||
42 | 'model' => $model->export() |
||
43 | ]); |
||
44 | } |
||
45 | |||
50 | } |