Ejemplo n.º 1
0
 /**
  * Lists all Order models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new OrderSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 public function actionList()
 {
     $model = new OrderSearch();
     $dataProvider = $model->search(\Yii::$app->request->queryParams);
     return $this->render('list', ['dataProvider' => $dataProvider, 'searchModel' => $model]);
 }