Ejemplo n.º 1
0
<?php

/* @var $this yii\web\View */
/* @var $query string */
/** @var \gromver\platform\common\models\MenuItem $menu */
$menu = Yii::$app->menuManager->getActiveMenu();
if ($menu) {
    $this->title = $menu->isProperContext() ? $menu->title : Yii::t('gromver.platform', 'Search');
    $this->params['breadcrumbs'] = $menu->getBreadcrumbs($menu->isApplicableContext());
} else {
    $this->title = Yii::t('gromver.platform', 'Search');
}
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="search-default-index">
    <h1><?php 
echo $this->title;
?>
</h1>
    <?php 
echo \gromver\platform\common\widgets\SearchForm::widget(['id' => 'fSearchForm', 'query' => $query, 'showPanel' => false]);
echo \gromver\platform\common\widgets\SearchResults::widget(['id' => 'fSearchResult', 'query' => $query, 'language' => Yii::$app->language]);
?>
</div>
Ejemplo n.º 2
0
<?php

/* @var $this yii\web\View */
/* @var $query string */
$this->title = Yii::t('gromver.platform', 'Search');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="search-default-index">
    <h1><?php 
echo Yii::t('gromver.platform', 'Search');
?>
</h1>

    <?php 
echo \gromver\platform\common\widgets\SearchForm::widget(['id' => 'bSearchForm', 'query' => $query, 'showPanel' => false]);
echo \gromver\platform\common\widgets\SearchResults::widget(['id' => 'bSearchResult', 'query' => $query, 'filters' => []]);
?>
</div>