Is It Possible To Design A Custom Layout For Forms (Yii-Bootstrap3-Module)?

Hi All,

Is It Possible To Design A Custom Layout For Forms using Yii-Bootstrap3-Module extension?


$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array(

    'layout' => BsHtml::FORM_LAYOUT_HORIZONTAL,

    'enableAjaxValidation' => true,

    'id' => 'article-form',

    'htmlOptions' => array(

        'class' => 'article-form',




The above code creates the following form with specified grids.

<div class="form-group">

  <label class="control-label col-lg-2 required" for="Post_title">Title <span class="required">*</span></label>

  <div class="col-lg-10">

    <input class="form-control" name="Post[title]" id="Post_title" placeholder="Title" type="text" />

    <p id="Post_title_em_" style="display:none" class="help-block"></p>



I have seen that this has been achieved by adding specific static class names to the Horizontal Layout in the source code. I want to adjust this label grid class or at least the input div grid from col-lg-10 to col-lg-6. Is there any simple way to achieve this without editing the extension source code or by using a custom layout like FORM_LAYOUT_CUSTOM and minimal changes?

Any help is appreciated. Thank You.