jmper
(Mirek)
September 9, 2011, 6:07am
1
I have the following form definition:
<?php
return array(
'title' => Yii::t('user', 'Edit profile'),
'attributes' => array(
'enctype' => 'application/form-data',
),
'showErrorSummary' => true,
'activeForm' => array(
'class' => 'CActiveForm',
'enableAjaxValidation' => true,
'enableClientValidation' => true,
'id' => 'profile-form',
),
'elements' => array(...)
After the page is rendered, there is no JavaScript for the validation, and of course the validation is not working (while according to the documentation it should).
What am I doing wrong?
woody1ks
(Woodywhitman)
November 23, 2011, 11:46pm
2
Jmper:
I have the following form definition:
<?php
return array(
'title' => Yii::t('user', 'Edit profile'),
'attributes' => array(
'enctype' => 'application/form-data',
),
'showErrorSummary' => true,
'activeForm' => array(
'class' => 'CActiveForm',
'enableAjaxValidation' => true,
'enableClientValidation' => true,
'id' => 'profile-form',
),
'elements' => array(...)
After the page is rendered, there is no JavaScript for the validation, and of course the validation is not working (while according to the documentation it should).
What am I doing wrong?
'enableAjaxValidation' AND 'enableClientValidation' cannot both be true.