Skip to content

Commit 7183235

Browse files
committed
Added passing of searchQuery to view params
1 parent 5d7641c commit 7183235

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/site/search.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<?php
22

3-
/* @var $this yii\web\View */
3+
/**
4+
* @var $this yii\web\View
5+
* @var string $query the search query that was submitted
6+
*/
47

58
use yii\helpers\Html;
69

710
$this->title = 'Search';
811
$this->params['breadcrumbs'][] = $this->title;
12+
$this->params['searchQuery'] = $query;
913
?>
1014
<div class="site-about">
1115
<h1><?= Html::encode($package->getFullName()) ?></h1>

0 commit comments

Comments
 (0)