Skip to content

Commit

Permalink
fix: i18n and widget for yii2 2.0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
krissss committed Jul 15, 2019
1 parent 187da28 commit f7363ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion widgets/SimpleSearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,24 @@ public function run()
}

$header = $this->renderHeader($collapsedToolsClass);
$content = parent::run();
$content = ob_get_clean();
$footer = $this->renderFooter();

$beginForm = Html::beginForm($this->action, $this->method, $this->options);
if ($this->enableClientScript) {
$this->registerClientScript();
}
$endFrom = Html::endForm();

$html = <<<HTML
<div class="box box-default {$collapsedClass}">
{$beginForm}
{$header}
<div class="box-body">
{$content}
</div>
{$footer}
{$endFrom}
</div>
HTML;
return $html;
Expand Down

0 comments on commit f7363ed

Please sign in to comment.