yii-joblo / multimodelform

Yii extension multimodelform
13 stars 9 forks source link

YiiBooster compatibility #13

Open vercotux opened 10 years ago

vercotux commented 10 years ago

In order to make MultiModelForm compatible with YiiBooster 4.x a very minor modification is needed.

MultiModelForm integrates beautifully when rendered as a YiiBooster form group like this:

<?php echo $form->widgetGroup('ext.multimodelform.MultiModelForm',$model,'memberAttr',array(
    'widgetOptions' => array(
        'model' => $member,
        'validatedItems' => array(),
        'data' => $model->members,
        'bootstrapLayout' => true,
        'formConfig' => array(
            'elements'=>array( ... ),
        ),
    ),
    'hint' => 'this is a hint',
)); ?>

However this will only work if MultiModelForm has a public $htmlOptions attribute. Could we consider adding it?

yii-joblo commented 9 years ago

Can you submit a pull request for this issue?