Commit 1444e148 by Alexander Makarov

Fixed Widget::widget

parent a2dca09e
...@@ -93,7 +93,8 @@ class Widget extends Component implements ViewContextInterface ...@@ -93,7 +93,8 @@ class Widget extends Component implements ViewContextInterface
/** @var Widget $widget */ /** @var Widget $widget */
$config['class'] = get_called_class(); $config['class'] = get_called_class();
$widget = Yii::createObject($config); $widget = Yii::createObject($config);
return ob_get_clean() . $widget->run(); $out = $widget->run();
return ob_get_clean() . $out;
} }
private $_id; private $_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment