Commit bff96357 by Alexander Kochetov

yii\bootstrap\Alert bugfixes and commentfixes

parent 0c9a65e9
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
namespace yii\bootstrap; namespace yii\bootstrap;
use Yii; use Yii;
use yii\base\Widget;
use yii\helpers\ArrayHelper; use yii\helpers\ArrayHelper;
use yii\helpers\Html; use yii\helpers\Html;
...@@ -22,7 +21,7 @@ use yii\helpers\Html; ...@@ -22,7 +21,7 @@ use yii\helpers\Html;
* 'body' => 'Say hello...', * 'body' => 'Say hello...',
* 'closeButton' => array( * 'closeButton' => array(
* 'label' => '×', * 'label' => '×',
* 'tag' => 'a' * 'tag' => 'a',
* ), * ),
* )); * ));
* ``` * ```
...@@ -33,8 +32,8 @@ use yii\helpers\Html; ...@@ -33,8 +32,8 @@ use yii\helpers\Html;
* ```php * ```php
* Alert::begin(array( * Alert::begin(array(
* 'closeButton' => array( * 'closeButton' => array(
* 'label' => '×' * 'label' => '×',
* ) * ),
* )); * ));
* *
* echo 'Say hello...'; * echo 'Say hello...';
...@@ -42,7 +41,7 @@ use yii\helpers\Html; ...@@ -42,7 +41,7 @@ use yii\helpers\Html;
* Alert::end(); * Alert::end();
* ``` * ```
* *
* @see http://twitter.github.io/bootstrap/javascript.html#modals * @see http://twitter.github.io/bootstrap/javascript.html#alerts
* @author Antonio Ramirez <amigo.cobos@gmail.com> * @author Antonio Ramirez <amigo.cobos@gmail.com>
* @since 2.0 * @since 2.0
*/ */
...@@ -70,6 +69,7 @@ class Alert extends Widget ...@@ -70,6 +69,7 @@ class Alert extends Widget
*/ */
public $closeButton = array(); public $closeButton = array();
/** /**
* Initializes the widget. * Initializes the widget.
*/ */
...@@ -150,4 +150,4 @@ class Alert extends Widget ...@@ -150,4 +150,4 @@ class Alert extends Widget
), $this->closeButton); ), $this->closeButton);
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment