controllers/IssueController.php
/**
     * Lists all issue models.
     * @return mixed
     */
Lists all issue models.
@return mixed
Lists all issue models . @return mixed
public function actionIndex()
    {
    	if (\Yii::$app->user->isGuest) {
            return $this->redirect('/propensi/web');
        }
        $data=new Issue();
		$hasil=$data->getAll();
        return $this->render('index', [
            'data' => $hasil,
        ]);
    }
public function actionIndex ( ) { if ( \ Yii :: $ app -> user -> isGuest ) { return $ this -> redirect ( '/propensi/web' ) ; } $ data = new Issue ( ) ; $ hasil = $ data -> getAll ( ) ; return $ this -> render ( 'index' , [ 'data' => $ hasil , ] ) ; }
Lists all issue models.
Lists all issue models .