Press "Enter" to skip to content

Yii2 – Ajax validation data di modal window

0

Last updated on 19 Oct 2019

Yii FrameworkBerikut ini script cara validasi data di pop up modal

<?php yii\widgets\Pjax::begin(['id' => 'log-in']) ?>
<?php $form = ActiveForm::begin(['id' => 'login-form', 'options' => ['data-pjax' => true]]); ?>
<?php yii\widgets\Pjax::end() ?>

The first line code above, insert code --> 'data-pjax' => true <-- in ActiveForm::begin()
Verified by MonsterInsights