/** * @inheritDoc */ public function init() { parent::init(); // TODO: Change the autogenerated stub $view = $this->getView(); ICheckAsset::register($view); }
/** * Initializes the widget. */ public function init() { parent::init(); echo Html::beginTag('div', ['class' => 'portlet']) . "\n"; echo Html::beginTag('div', ['class' => 'portlet-title ']) . "\n"; echo Html::beginTag('div', ['class' => 'tools']) . "\n"; }
/** * 初始化widget,设置form标签头部 * * @see \yii\base\Object::init() */ public function init() { if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } echo Html::beginForm($this->action, $this->method, $this->options); echo $this->field('_csrf')->hiddenInput(['value' => Yii::$app->request->getCsrfToken()]); parent::init(); }
/** * (non-PHPdoc) * @see \yii\bootstrap\Widget::init() */ public function init() { parent::init(); if (!isset($this->options['id'])) { $this->options['id'] = $this->getId(); } $this->initOptions(); echo Html::beginTag('div', ['class' => 'table-scrollable']) . "\n"; echo Html::beginTag('table', $this->options) . "\n"; echo $this->renderHeader() . "\n"; echo Html::beginTag('tbody') . "\n"; }
/** * Initializes the widget. */ public function init() { parent::init(); $this->initOptions(); echo $this->renderToggleButton() . "\n"; echo Html::beginTag('div', $this->options) . "\n"; echo Html::beginTag('div', ['class' => 'modal-dialog ' . $this->size]) . "\n"; echo Html::beginTag('div', ['class' => 'modal-content']) . "\n"; echo $this->renderHeader() . "\n"; echo $this->renderBodyBegin() . "\n"; }
/** * Initializes the widget. */ public function init() { parent::init(); Html::addCssClass($this->options, 'nav ' . $this->navType); }
/** * Initializes the widget. * If you override this method, make sure you call the parent implementation first. */ public function init() { parent::init(); Html::addCssClass($this->options, 'dropdown-menu'); }