/** * @inheritdoc */ public static function end() { /** @var Widget $widget */ $widget = parent::end(); if ($widget->renderJs) { echo $widget->renderJs(); } }
/** * Get script from output buffer, and register by \yii\web\View::registerJs() * @see \yii\base\Widget::end() */ public static function end() { $script = ob_get_clean(); $widget = parent::end(); if (preg_match("/^\\s*\\<script\\>(.*)\\<\\/script\\>\\s*\$/s", $script, $matches)) { $script = $matches[1]; } $widget->view->registerJs($script, $widget->position, $widget->key); }
public static function end() { echo Html::endTag('div'); Html::addCssClass(static::$buttonContainerOptions, 'nb__button_container'); echo Html::beginTag('div', static::$buttonContainerOptions); echo Html::beginTag('div', static::$buttonBlockOptions); echo Html::beginTag('div', static::$buttonWrapOptions); $widget = parent::end(); echo Html::endTag('div'); echo Html::endTag('div'); echo Html::endTag('div'); echo Html::endTag('div'); return $widget; }
public static function end() { echo '</main>'; return parent::end(); }
public static function end() { parent::end(); }
public static function end() { $w = self::$stack[count(self::$stack) - 1]; $view = $w->getView(); if ($c = count($w->structurePath) > 0) { throw new \yii\base\Exception(sprintf("%d unclosed relations", $c)); } echo Html::endForm(); $w->createMappings(); // if we don't have any data, initialize empty attributes, otherwise attributes are not created by mapping if (empty($w->data)) { foreach ($w->structure as $key => $value) { foreach ($value as $key2 => $value2) { $w->data[$key2] = null; } } } if ($w->bind) { $w->bind($w->data, $w->errors); } parent::end(); }