In my controller in yii2 I have the following:
$searchModel = new HealthSearch();
$dataProvider = $searchModel->search(['HealthSearch'=>['zip'=>$zipcode]]);
which works but I would like it to also search for zipcodes and speciality
I tried:
$dataProvider = $searchModel->search(['HealthSearch'=>['zip'=>$zipcode,'pri_spec'=>$sspec']]);
but that does not work? What is the correct way of searching??
'
. – Salem Ouerdani$dataProvider = $searchModel->search(Yii::$app->request->queryParams)
. – Beowulfenator