ArticleController::actionCreate PHP Méthode

actionCreate() public méthode

If creation is successful, the browser will be redirected to the 'view' page.
public actionCreate ( )
    public function actionCreate()
    {
        $model = new Article();
        // Uncomment the following line if AJAX validation is needed
        // $this->performAjaxValidation($model);if (isset($_POST['Article'])) {
        $model->attributes = $_POST['Article'];
        if ($model->save()) {
            $this->redirect(array('admin'));
        }
        $this->render('create', array('model' => $model));
    }