public function actionCreate() { $model = new Company(); if ($model->load($this->post()) && $model->save()) { return $this->redirect(['/crm/company/view', 'id' => $model->id]); } return $this->render(['model' => $model]); }