controllers/ProgramasController.php
/**
     * Creates a new Programas model.
     * If creation is successful, the browser will be redirected to the 'view' page.
     * @return mixed
     */
Creates a new Programas model.
If creation is successful, the browser will be redirected to the 'view' page.
@return mixed
Creates a new Programas model . If creation is successful the browser will be redirected to the ' view ' page . @return mixed
public function actionCreate()
    {
        $model = new Programas();
        if ($model->loadAll(Yii::$app->request->post()) && $model->saveAll()) {
            return $this->redirect(['view', 'id' => $model->prg_id]);
        } else {
            return $this->render('create', [
                'model' => $model,
            ]);
        }
    }
public function actionCreate ( ) { $ model = new Programas ( ) ; if ( $ model -> loadAll ( Yii :: $ app -> request -> post ( ) ) && $ model -> saveAll ( ) ) { return $ this -> redirect ( [ 'view' , 'id' => $ model -> prg_id ] ) ; } else { return $ this -> render ( 'create' , [ 'model' => $ model , ] ) ; } }
Creates a new Programas model.
Creates a new Programas model .