backend/controllers/LoginController.php
/**
     * Displays a single Login model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single Login model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single Login model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id)
    {
        if (Yii::$app->user->isGuest) { 
            header("Location: index.php");
            exit;
        }
        $hakakses = Systemrole::find()->orderBy("nama_role")->all();
        return $this->render('view', [
            'model' => $this->findModel($id),
            'hakakses' => $hakakses,
        ]);
    }
public function actionView ( $ id ) { if ( Yii :: $ app -> user -> isGuest ) { header ( " Location: index.php " ) ; exit ; } $ hakakses = Systemrole :: find ( ) -> orderBy ( " nama_role " ) -> all ( ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'hakakses' => $ hakakses , ] ) ; }
Displays a single Login model.
Displays a single Login model .