public function actionItemlist() { $searchModel = new MItemSearch(); $dataProvider = $searchModel->search(Yii::$app->request->get()); return $this->render('itemlist', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }
/** * Lists all MItem models. * @return mixed */ public function actionIndex() { $searchModel = new MItemSearch(); $dataProvider = $searchModel->search($_GET); return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]); }