Closed aagge closed 6 years ago
Hi,
Does your widget work when enclosed in ActiveForm? It shows but does not save. Is this expected behavior? Can I make it work within ActiveForm?
<?php $form = ActiveForm::begin(); ?>
<?php echo \yii2mod\comments\widgets\Comment::widget([ 'model' => $model, 'dataProviderConfig' => [ 'pagination' => [ 'pageSize' => 5 ], ]]); ?>
<?php ActiveForm::end(); ?>
Hi, you can't, Comment widget already included ActiveForm
Hi,
Does your widget work when enclosed in ActiveForm? It shows but does not save. Is this expected behavior? Can I make it work within ActiveForm?
<?php $form = ActiveForm::begin(); ?>
<?php ActiveForm::end(); ?>