/** * Lists all IledebeauteProduct models. * @return mixed */ public function actionIndex() { $searchModel = new IledebeauteProductSearch(); $condition = []; if (isset(Yii::$app->request->queryParams['IledebeauteProductSearch'])) { $params = Yii::$app->request->queryParams['IledebeauteProductSearch']; if ($params['group']) { $condition['group'] = $params['group']; } if ($params['category']) { $condition['category'] = $params['category']; } if ($params['sub_category']) { $condition['sub_category'] = $params['sub_category']; } if ($params['brand']) { $condition['brand'] = $params['brand']; } } $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'condition' => $condition]); }
/** * @return string */ public function actionIndexDeleted() { $rivegaucheDataProvider = RivegaucheProductSearch::getStatisticsDeleted(); $iledebeauteDataProvider = IledebeauteProductSearch::getStatisticsDeleted(); $letualDataProvider = LetualProductSearch::getStatisticsDeleted(); $elizeDataProvider = ElizeProductSearch::getStatisticsDeleted(); return $this->render('index_deleted', ['rivegaucheDataProvider' => $rivegaucheDataProvider, 'iledebeauteDataProvider' => $iledebeauteDataProvider, 'letualDataProvider' => $letualDataProvider, 'elizeDataProvider' => $elizeDataProvider]); }