public function actionCreate() { $model = new Pool(); $pooltype = PoolType::find()->all(); if ($model->load(Yii::$app->request->post())) { $model->capital_size = str_replace(',', "", $_POST['Pool']['capital_size']); $model->save(); return $this->redirect(['index']); } else { return $this->render('create', ['type' => "create", 'model' => $model, 'pooltype' => $pooltype]); } }