/** * Initializes the widget */ public function init() { // Generate a unique ID. We can't rely on the built-in counter in // CWidget::getId() because these modals may be rendered from AJAX // request and the counter will be zero then $this->id = uniqid($this->getId()); parent::init(); TbHtml::addCssClass('watch-modal', $this->htmlOptions); $this->header = Yii::t('Movies', 'Watch / Download'); }
public function init() { parent::init(); }
/** * Widget's initialization */ public function init() { parent::init(); $this->attachBehavior('ywplugin', array('class' => 'yiiwheels.behaviors.WhPlugin')); }
public function init() { parent::init(); echo '<div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><h3>', $this->modalTitle, '</h3></div><div class="modal-body">'; }