modules/admin/controllers/SubAdminController.php
/**
     * Displays a single SubAdmin model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single SubAdmin model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single SubAdmin model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id)
    {
        $Admin_model = $this->findModel($id);
        if (!empty($Admin_model->user_type)) {
            $get_user_type = SubAdmin::USER_TYPE;
            $Admin_model->user_type = $get_user_type[$Admin_model->user_type];
        }
        return $this->render('view', [
            'model' => $Admin_model,
        ]);
    }
public function actionView ( $ id ) { $ Admin_model = $ this -> findModel ( $ id ) ; if ( ! empty ( $ Admin_model -> user_type ) ) { $ get_user_type = SubAdmin :: USER_TYPE ; $ Admin_model -> user_type = $ get_user_type [ $ Admin_model -> user_type ] ; } return $ this -> render ( 'view' , [ 'model' => $ Admin_model , ] ) ; }
Displays a single SubAdmin model.
Displays a single SubAdmin model .