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