backend/controllers/UserController.php
/**
     * Lists all User models.
     * @return mixed
     */
Lists all User models.
@return mixed
Lists all User models . @return mixed
public function actionIndex()
    {
        $model= (new \yii\db\Query())
        ->select('*')
        ->from('user')
        ->all();
        return $this->render('index', [
            'model'=>$model,
        ]);
    }
public function actionIndex ( ) { $ model = ( new \ yii \ db \ Query ( ) ) -> select ( '*' ) -> from ( 'user' ) -> all ( ) ; return $ this -> render ( 'index' , [ 'model' => $ model , ] ) ; }
Lists all User models.
Lists all User models .