Пример #1
0
 public function actionCity()
 {
     $model = new City();
     if ($model->load(Yii::$app->request->post())) {
         if ($model->validate()) {
             // form inputs are valid, do something here
             return;
         }
     }
     return $this->render('city', ['model' => $model]);
 }