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