public function actionIndex() { $data = new ActiveDataProvider(['query' => Category::findWithItemCount()->sort()]); return $this->render('index', ['data' => $data]); }