controllers/AktivitasController.php
/**
     * Lists all Aktivitas models.
     * @return mixed
     */
Lists all Aktivitas models.
@return mixed
Lists all Aktivitas models . @return mixed
public function actionIndex()
    {
    	if (\Yii::$app->user->isGuest) {
            return $this->redirect('/propensi/web');
        }
        $searchModel = new AktivitasSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
		$model=new Aktivitas();
		$data=$model->getAll();
        return $this->render('index', [
            'data' => $data
        ]);
    }
public function actionIndex ( ) { if ( \ Yii :: $ app -> user -> isGuest ) { return $ this -> redirect ( '/propensi/web' ) ; } $ searchModel = new AktivitasSearch ( ) ; $ dataProvider = $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; $ model = new Aktivitas ( ) ; $ data = $ model -> getAll ( ) ; return $ this -> render ( 'index' , [ 'data' => $ data ] ) ; }
Lists all Aktivitas models.
Lists all Aktivitas models .