public function actionIndex() { $model = new Example(); if (App::$request->post('Example')) { $model->load(App::$request->post('Example')); } return $this->render('site/index', ['model' => $model]); }