public function actionIndex($query = null) { return $this->render('index', ['query' => Html::encode($query), 'results' => Index::searchByQuery($query)]); }
public function actionIndex($query = null) { return ['query' => Html::encode($query), 'results' => Index::searchByQuery($query, Yii::$app->composition->getKey('langShortCode'))]; }
public function actionIndex($query = null) { return ['query' => Html::encode($query), 'results' => Index::searchByQuery($query)]; }