/**
  * Lists all Sample models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SampleSearch();
     $dataProvider = $searchModel->search($_GET);
     Tabs::clearLocalStorage();
     Url::remember();
     \Yii::$app->session['__crudReturnUrl'] = null;
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
Esempio n. 2
0
 /**
  * Lists all Sample models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SampleSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }