示例#1
0
 /**
  * Renders the HTML markup for the footer of the modal.
  * This will also render buttons.
  * @return string the rendering result
  */
 public function renderFooter()
 {
     $footer = parent::renderFooter();
     if (empty($footer) && (isset($this->cancelButton) || isset($this->submitButton))) {
         if ($this->cancelButton) {
             $footer .= Button::widget($this->cancelButton);
         }
         if ($this->submitButton) {
             $footer .= Button::widget($this->submitButton);
         }
         Html::addCssClass($this->footerOptions, 'modal-footer');
         $footer = Html::tag('div', "\n" . $footer . "\n", $this->footerOptions);
     }
     return $footer;
 }