/**
  * Creates a new Itemcardapio model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     if (Yii::$app->user->can("create-itemcardapio") || Yii::$app->user->can("itemcardapio")) {
         $model = new Itemcardapio();
         if ($model->load(Yii::$app->request->post()) && $model->save()) {
             return $this->redirect(['view', 'idCardapio' => $model->idCardapio, 'idProduto' => $model->idProduto]);
         } else {
             return $this->render('create', ['model' => $model]);
         }
     } else {
         throw new ForbiddenHttpException("Acesso negado!");
     }
 }