public function actionDetails($id)
 {
     $searchModel = new SearchModel(['defaultOrder' => ['id' => SORT_DESC], 'model' => ErrorLog::className(), 'partialMatchAttributes' => ['info', 'server_vars', 'request_vars']]);
     $searchModel->url_id = $id;
     $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
     return $this->render('details', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 public function actionIndex()
 {
     $searchModelConfig = ['defaultOrder' => ['id' => SORT_DESC], 'model' => Review::className(), 'relations' => ['submission.form' => ['name']], 'additionalConditions' => [['parent_id' => 0]]];
     $searchModel = new SearchModel($searchModelConfig);
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * @return string
  * @throws \yii\web\ServerErrorHttpException
  */
 public function actionIndex()
 {
     $searchModelConfig = ['model' => Customer::className(), 'partialMatchAttributes' => ['first_name', 'middle_name', 'last_name'], 'additionalConditions' => []];
     /** @var SearchModel $searchModel */
     $searchModel = new SearchModel($searchModelConfig);
     $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * @return string
  * @throws \yii\web\ServerErrorHttpException
  */
 public function actionIndex()
 {
     $searchModelConfig = ['model' => Contragent::className(), 'additionalConditions' => []];
     /** @var SearchModel $searchModel */
     $searchModel = new SearchModel($searchModelConfig);
     $dataProvider = $searchModel->search(\Yii::$app->request->queryParams);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 /**
  * Lists all Order models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModelConfig = ['defaultOrder' => ['id' => SORT_DESC], 'model' => Order::className(), 'relations' => ['user' => ['username']], 'partialMatchAttributes' => ['start_date', 'end_date', 'user_username'], 'additionalConditions' => []];
     if (intval($this->module->showDeletedOrders) === 0) {
         $searchModelConfig['additionalConditions'] = [['is_deleted' => 0]];
     }
     /** @var SearchModel $searchModel */
     $searchModel = new SearchModel($searchModelConfig);
     if (intval($this->module->defaultOrderStageFilterBackend) > 0) {
         $searchModel->order_stage_id = intval($this->module->defaultOrderStageFilterBackend);
     }
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['dataProvider' => $dataProvider, 'managers' => $this->getManagersList(), 'orderStages' => Helper::getModelMap(OrderStage::className(), 'id', 'name_short'), 'paymentTypes' => Helper::getModelMap(PaymentType::className(), 'id', 'name'), 'searchModel' => $searchModel, 'shippingOptions' => Helper::getModelMap(ShippingOption::className(), 'id', 'name')]);
 }
 /**
  * Lists all ShippingOption models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SearchModel(['model' => ShippingOption::className(), 'partialMatchAttributes' => ['name']]);
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all CategoryGroup models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SearchModel(['model' => CategoryGroup::className(), 'partialMatchAttributes' => ['name'], 'scenario' => 'default']);
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all User models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SearchModel(['model' => '\\app\\modules\\user\\models\\User', 'partialMatchAttributes' => ['username', 'email', 'create_time']]);
     $dataProvider = $searchModel->search($_GET);
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }
 public function actionIndex()
 {
     $searchModel = new SearchModel(['defaultOrder' => ['id' => SORT_DESC], 'model' => ErrorImage::className(), 'scenario' => 'default']);
     $dataProvider = $searchModel->search(Yii::$app->request->get());
     return $this->render('index', ['dataProvider' => $dataProvider, 'searchModel' => $searchModel]);
 }