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