/** * Renders the widget. */ public function run() { $tag = ArrayHelper::remove($this->containerOptions, 'tag', 'div'); echo Html::endTag($tag); $tag = ArrayHelper::remove($this->options, 'tag', 'nav'); echo Html::endTag($tag, $this->options); MaterializeAsset::register($this->getView()); }
/** * Renders the widget. */ public function run() { MaterializeAsset::register($this->getView()); return $this->renderItems(); }