public function actionIndex() { $searchModel = new \plathir\smartblog\backend\models\search\Category_s(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); $dataProvider->setSort(['defaultOrder' => ['root' => SORT_ASC, 'lft' => SORT_ASC]]); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }
public function actionIndex() { $searchModel = new \plathir\smartblog\backend\models\search\Category_s(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }