/**
  * Creates a new Mtprovinces 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-countries')) {
         $model = new Mtprovinces();
         if ($model->load(Yii::$app->request->post())) {
             $model->province_created = date('Y-m-d h:i:s');
             $model->province_status = 'ACTIVE';
             $model->province_updated = date('Y-m-d h:i:s');
             $model->save();
             return $this->redirect(['index']);
         } else {
             return $this->render('create', ['model' => $model]);
         }
     } else {
         throw new ForbiddenHttpException();
     }
 }