src/Widgets/Bootstrap/Modal.php
public function init()
    {
        parent::init();

        $this->initOptions();
        $modalDialogOptions = ['class' => 'modal-dialog ' . $this->size];
        $modalDialogOptions['class'] .= ($this->centered ? ' modal-dialog-centered' : '');

        echo $this->renderToggleButton() . "\n";
        echo $this->htmlHlp->beginTag('div', $this->options) . "\n";
        echo $this->htmlHlp->beginTag('div', $modalDialogOptions) . "\n";
        echo $this->htmlHlp->beginTag('div', ['class' => 'modal-content']) . "\n";
        echo $this->renderHeader() . "\n";
        echo $this->renderBodyBegin() . "\n";
    }
public function init()
    {
        parent::init();

        $this->initOptions();
        $modalDialogOptions = ['class' => 'modal-dialog ' . $this->size];
        $modalDialogOptions['class'] .= ($this->centered ? ' modal-dialog-centered' : '');

        echo $this->renderToggleButton() . "\n";
        echo $this->htmlHlp->beginTag('div', $this->options) . "\n";
        echo $this->htmlHlp->beginTag('div', $modalDialogOptions) . "\n";
        echo $this->htmlHlp->beginTag('div', ['class' => 'modal-content']) . "\n";
        echo $this->renderHeader() . "\n";
        echo $this->renderBodyBegin() . "\n";
    }
Initializes the widget.