add empty init() method to class BSHtml and add the component bsHtml to preload section of config
For autoload bsHtml class. Add empty init() method to class BSHtml and add the component 'bsHtml' to preload section of config
BSHtml.php:: ... public function init() { // } //initialising component on preloading ...
{yiiapp}/config/main.php:: ... 'preload'=>array( ... 'bsHtml', //yii-bootstrap3-module component ... ), ...
Comments (3)
-
repo owner -
repo owner - changed status to wontfix
uncommented closed
-
repo owner - changed status to resolved
resolve
#16ISSUE 1 (missing labels): If I set the form layout to'layout' => BSHtml::FORM_LAYOUT_HORIZONTAL
field labels are shown. But if I don't set any layout (because I want a vertical layout), there's no label above the fields.
ISSUE 2 (form-vertical doesn't exist):
If I set the form layout to
'layout' => BSHtml::FORM_LAYOUT_VERTICAL
it adds the "form-vertical" class which doesn't exist in Bootstrap. Moreover, labels are always on the side (like in the HORIZONTAL layout) instead of being above the fields.
→ <<cset 0addcf406d96>>
- Log in to comment
What does we win ?