Ejemplo n.º 1
0
 public function actionCreate()
 {
     $model = new Settings();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         return $this->redirect('index');
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }