public function actionAdd_comment() { $model = new \frontend\models\Comment(); $model->create_time = time(); if ($model->load(Yii::$app->request->post()) && $model->save()) { echo 'Youre Comment Saved'; } else { echo 'fail'; } }