コード例 #1
0
 public function actionDeleteUserType()
 {
     if ($this->isDeleteAllowed()) {
         if (Yii::$app->request->get()) {
             UserType::deleteAll('id = ' . Yii::$app->request->get()['id']);
             /*return $this->render('user_type_list');*/
             return $this->redirect(['security/user-type-management']);
         }
         return $this->render('user_type_list');
     } else {
         echo "You don't have access here";
         die;
     }
 }