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')
    ])
    ?>