Php 如何使yii2中的单个字段的ajax为false
我想在我的Php 如何使yii2中的单个字段的ajax为false,php,yii2,Php,Yii2,我想在我的ActiveForm上执行一些AJAX验证,但我想使单个字段的AJAX验证为false 我应该如何在Yii2中做到这一点 我的单字段代码: <?= $form->field($modelChangePassword, 'CurrentPassword', [ 'options'=>['enableAjaxValidation' => false])->textInput(['placeholder'=>Yii::t(
ActiveForm
上执行一些AJAX
验证,但我想使单个字段的AJAX
验证为false
我应该如何在Yii2中做到这一点
我的单字段代码:
<?= $form->field($modelChangePassword, 'CurrentPassword',
[
'options'=>['enableAjaxValidation' => false])->textInput(['placeholder'=>Yii::t('frontend/changePassword','CurrentPasswordPlaceholderText')
])
?>
试试这个
<?= $form->field($modelChangePassword, 'CurrentPassword',
['enableAjaxValidation' => false])->textInput(['placeholder'=>Yii::t('frontend/changePassword','CurrentPasswordPlaceholderText')
])
?>