|
|
@ -2,7 +2,7 @@ Html helper |
|
|
|
=========== |
|
|
|
=========== |
|
|
|
|
|
|
|
|
|
|
|
Bootstrap introduces many consistent HTML constructions and skeletons, which allow creating different visual effects. |
|
|
|
Bootstrap introduces many consistent HTML constructions and skeletons, which allow creating different visual effects. |
|
|
|
Only the most complex of them are covered by widgets provided with this extension. The rest should be composed manually |
|
|
|
Only the most complex of them are covered by the widgets provided with this extension. The rest should be composed manually |
|
|
|
using direct HTML composition. |
|
|
|
using direct HTML composition. |
|
|
|
However, several special Bootstrap markup cases are covered by [[\yii\bootstrap\Html]] helper. |
|
|
|
However, several special Bootstrap markup cases are covered by [[\yii\bootstrap\Html]] helper. |
|
|
|
[[\yii\bootstrap\Html]] is an enhanced version of the regular [[\yii\helpers\Html]] dedicated to the Bootstrap needs. |
|
|
|
[[\yii\bootstrap\Html]] is an enhanced version of the regular [[\yii\helpers\Html]] dedicated to the Bootstrap needs. |
|
|
@ -11,7 +11,7 @@ It provides several useful methods: |
|
|
|
- `icon()` - allows rendering of Glyphicon icons |
|
|
|
- `icon()` - allows rendering of Glyphicon icons |
|
|
|
- `staticControl()` - allows rendering of form "static controls" |
|
|
|
- `staticControl()` - allows rendering of form "static controls" |
|
|
|
|
|
|
|
|
|
|
|
[[\yii\bootstrap\Html]] inherits all functionality available at [[\yii\helpers\Html]] and can be used as substitute, |
|
|
|
[[\yii\bootstrap\Html]] inherits all functionality available at [[\yii\helpers\Html]] and can be used as a substitute, |
|
|
|
so you don't need them both inside your view files. |
|
|
|
so you don't need them both inside your view files. |
|
|
|
For example: |
|
|
|
For example: |
|
|
|
|
|
|
|
|
|
|
@ -26,5 +26,5 @@ use yii\bootstrap\Html; |
|
|
|
]); ?> |
|
|
|
]); ?> |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
> Attention: do not confuse [[\yii\bootstrap\Html]] and [[\yii\helpers\Html]], be careful in which class |
|
|
|
> Attention: do not confuse [[\yii\bootstrap\Html]] and [[\yii\helpers\Html]], be careful of which class |
|
|
|
you are using inside your views. |
|
|
|
you are using inside your views. |