Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function actionIndex() |
||
16 | { |
||
17 | $form = new \humhub\modules\privacybox\models\forms\EditForm(); |
||
18 | |||
19 | if ($form->load(Yii::$app->request->post()) && $form->validate() && $form->save()) { |
||
20 | return $this->redirect(Url::to(['/privacybox/admin/index'])); |
||
21 | } |
||
22 | |||
23 | return $this->render('index', ['model' => $form]); |
||
24 | } |
||
25 | |||
29 |