controllers/CategoryController.php
/**
     * Lists all Category models.
     * @return mixed
     */
Lists all Category models.
@return mixed
Lists all Category models . @return mixed
public function actionIndex()
    {
        $searchModel = new CategorySearch();
        $searchModel->search(Yii::$app->request->queryParams);
        $data = $searchModel -> outTree(0,0);
        return $this->render('index', [
            'data' => $data,
        ]);
    }
public function actionIndex ( ) { $ searchModel = new CategorySearch ( ) ; $ searchModel -> search ( Yii :: $ app -> request -> queryParams ) ; $ data = $ searchModel -> outTree ( 0 , 0 ) ; return $ this -> render ( 'index' , [ 'data' => $ data , ] ) ; }
Lists all Category models.
Lists all Category models .
//            'searchModel' => $searchModel