/**
  * Creates a new Cartellone model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Cartellone();
     $ok = $model->load(Yii::$app->request->post());
     if ($ok) {
         $model->id = null;
         $ok = $model->validate();
     }
     if ($ok) {
         $ok = $model->save();
     }
     if ($ok) {
         return $this->redirect(['view', 'id' => $model->id]);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }