consultnn / yii2-multi-embedded-widget
Yii2 widget for multiple mongodb embedded documents
1.0
2015-07-24 08:00 UTC
Requires
This package is not auto-updated.
Last update: 2024-12-21 20:17:38 UTC
README
Embedded documents behavior(https://github.com/consultnn/yii2-mongodb-embedded)
Example
echo $form->field($model, 'phones', ['options' => ['class' => 'col-lg-6 col-sm-6']])->widget(
\consultnn\widgets\MultiEmbedded::className(),
[
'form' => $form,
'embeddedModelClassName' => \common\models\Phone::className(),
'embeddedFormName' => Html::getInputName($model, 'phones')
]
);