<?php /** * _ __ __ _____ _____ ___ ____ _____ * | | / // // ___//_ _// || __||_ _| * | |/ // /(__ ) / / / /| || | | | * |___//_//____/ /_/ /_/ |_||_| |_| * @link https://vistart.name/ * @copyright Copyright (c) 2016 vistart * @license https://vistart.name/license/ */ /* @var $keywords string */ /* @var $results string[] */ use rhoone\widgets\SearchWidget; $this->title = 'Search'; ?> <div class="row"> <div class="col-md-12"> <?php echo SearchWidget::widget(['model' => $model, 'resultConfig' => ['containerConfig' => ['results' => $results]]]); ?> </div> </div>
public function actionResult($keywords = null, $results = null) { return SearchWidget::widget(['model' => new SearchForm(['keywords' => $keywords]), 'resultConfig' => ['containerConfig' => ['results' => $results]]]); }