Esempio n. 1
0
 /**
  * Lists all Products models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SearchProducts();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
 }
 /**
  * Lists all Products models.
  * @return mixed
  */
 public function actionIndex()
 {
     $searchModel = new SearchProducts();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'cat_id' => Yii::$app->request->queryParams["SearchProducts"]["cat_id"], 'back' => Categories::getParentParentId(Yii::$app->request->queryParams["SearchProducts"]["cat_id"])]);
 }