From bff963576e20f2d979c06f3d1ae9eb2b1dbd09a0 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Tue, 21 May 2013 19:25:15 +0400 Subject: [PATCH] yii\bootstrap\Alert bugfixes and commentfixes --- yii/bootstrap/Alert.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yii/bootstrap/Alert.php b/yii/bootstrap/Alert.php index 2bc4893..f84a70b 100644 --- a/yii/bootstrap/Alert.php +++ b/yii/bootstrap/Alert.php @@ -8,7 +8,6 @@ namespace yii\bootstrap; use Yii; -use yii\base\Widget; use yii\helpers\ArrayHelper; use yii\helpers\Html; @@ -22,7 +21,7 @@ use yii\helpers\Html; * 'body' => 'Say hello...', * 'closeButton' => array( * 'label' => '×', - * 'tag' => 'a' + * 'tag' => 'a', * ), * )); * ``` @@ -33,8 +32,8 @@ use yii\helpers\Html; * ```php * Alert::begin(array( * 'closeButton' => array( - * 'label' => '×' - * ) + * 'label' => '×', + * ), * )); * * echo 'Say hello...'; @@ -42,7 +41,7 @@ use yii\helpers\Html; * Alert::end(); * ``` * - * @see http://twitter.github.io/bootstrap/javascript.html#modals + * @see http://twitter.github.io/bootstrap/javascript.html#alerts * @author Antonio Ramirez * @since 2.0 */ @@ -70,6 +69,7 @@ class Alert extends Widget */ public $closeButton = array(); + /** * Initializes the widget. */ @@ -150,4 +150,4 @@ class Alert extends Widget ), $this->closeButton); } } -} \ No newline at end of file +}