public function actionIndex($id) { $staticUrl = $this->category->getStaticUrl()->notEmpty(); $dataProvider = new ActiveDataProvider(['query' => $staticUrl]); $search = new StaticUrlSearchFormModel(); return $this->render('index', ['category' => $this->category, 'dataProvider' => $dataProvider, 'search' => $search]); }