Exemple #1
0
 /**
  * Lists all Order models.
  * @return mixed
  */
 public function actionIndex()
 {
     //if(!Yii::$app->user->can('viewYourAuth')) throw new ForbiddenHttpException(Yii::t('app', 'No Auth'));
     $searchModel = new OrderSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Order models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new OrderSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * Lists all Store models.
  * @return mixed
  */
 public function actionIndex()
 {
     $orderModel = new OrderSearch();
     $dataProvider = $orderModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['orderModel' => $orderModel, 'dataProvider' => $dataProvider]);
 }