/** * @inheritdoc */ public function actionIndex($q) { $model = new Search(); $model->search($q); return $this->render('index', ['model' => $model]); }