app\controllers\DashboardController::actionCreate PHP Méthode

actionCreate() public méthode

public actionCreate ( )
    public function actionCreate()
    {
        $model = new Dashboard();
        if ($model->load(Yii::$app->request->post()) && $model->save()) {
            return $this->redirect(['view', 'id' => $model->id]);
        } else {
            return $this->render('create', ['model' => $model]);
        }
    }