Commit 87cc8e45 by san58

отфильтровал список результатов

1 parent 7ffe17b9
......@@ -5,6 +5,7 @@ namespace app\controllers;
use Yii;
use app\models\Host;
use app\models\HostSearch;
use app\models\Filter;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
......@@ -45,7 +46,7 @@ class HostFreeController extends Controller
*/
public function actionIndex()
{
$searchModel = new HostSearch(['wis_status' => 1]);
$searchModel = new HostSearch(['wis_status' => Host::STATUS_WIS_FREE, 'status' => Filter::STATUS_ON ]);
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!