add empty init() method to class BSHtml and add the component bsHtml to preload section of config

Issue #1 resolved
Former user created an issue

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)

  1. Pascal Brewing repo owner

    resolve #16 ISSUE 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>>

  2. Log in to comment