From c16bd756983c29fd854da5b1a672fae0424e48ee Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Fri, 24 May 2013 09:55:57 -0400 Subject: [PATCH] Removed Modal::body. --- framework/yii/bootstrap/Modal.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/framework/yii/bootstrap/Modal.php b/framework/yii/bootstrap/Modal.php index 3a4d08c..0608fbe 100644 --- a/framework/yii/bootstrap/Modal.php +++ b/framework/yii/bootstrap/Modal.php @@ -14,18 +14,6 @@ use yii\helpers\Html; /** * Modal renders a modal window that can be toggled by clicking on a button. * - * For example, - * - * ~~~php - * echo Modal::widget(array( - * 'header' => '

Hello world

', - * 'body' => 'Say hello...', - * 'toggleButton' => array( - * 'label' => 'click me', - * ), - * )); - * ~~~ - * * The following example will show the content enclosed between the [[begin()]] * and [[end()]] calls within the modal window: * @@ -54,12 +42,6 @@ class Modal extends Widget */ public $header; /** - * @var string the body content in the modal window. Note that anything between - * the [[begin()]] and [[end()]] calls of the Modal widget will also be treated - * as the body content, and will be rendered before this. - */ - public $body; - /** * @var string the footer content in the modal window. */ public $footer; @@ -154,7 +136,7 @@ class Modal extends Widget */ protected function renderBodyEnd() { - return $this->body . "\n" . Html::endTag('div'); + return Html::endTag('div'); } /**