Commit d2576c57 by Скуратович Александр

+

1 parent 001496b0
...@@ -46,11 +46,8 @@ class HostFreeController extends Controller ...@@ -46,11 +46,8 @@ class HostFreeController extends Controller
*/ */
public function actionIndex() public function actionIndex()
{ {
/*'wis_status' => Host::STATUS_WIS_FREE, 'status' => Filter::STATUS_ON */ $searchModel = new HostSearch(['wis_status' => Host::STATUS_WIS_FREE, 'status' => Filter::STATUS_ON]);
$params = Yii::$app->request->queryParams; $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$params['wis_status']=Host::STATUS_WIS_FREE;
$searchModel = new HostSearch();
$dataProvider = $searchModel->search($params);
return $this->render('index', [ return $this->render('index', [
'searchModel' => $searchModel, 'searchModel' => $searchModel,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!