Yii Activeform Loads Half

here is my rules array from model.


array('user_authen_email, user_authen_pass, user_authen_cpass, user_authen_verifycode', 'required'),

			array('user_authen_email', 'email'),

			array('user_authen_email', 'length', 'max'=>320),

			array('user_authen_pass', 'length', 'min'=>8 , 'max'=>32),

			array('user_authen_cpass', 'compare', 'compareAttribute'=>'user_authen_pass'),

and the javascript generated by it… is…


<script type="text/javascript">

/*<![CDATA[*/

jQuery(function($) {

jQuery('[data-toggle=popover]').popover();

jQuery('body').tooltip({"selector":"[data-toggle=tooltip]"});

jQuery('#user-authen-form').yiiactiveform({'validateOnSubmit':true,'attributes':[{'id':'UserAuthen_user_authen_user','inputID':'UserAuthen_user_authen_user','errorID':'UserAuthen_user_authen_user_em_','model':'UserAuthen','name':'user_authen_user','enableAjaxValidation':false},{'id':'UserAuthen_user_authen_email','inputID':'UserAuthen_user_authen_email','errorID':'UserAuthen_user_authen_email_em_','model':'UserAuthen','name':'user_authen_email','enableAjaxValidation':false,'clientValidation':function(value, messages, attribute) {


if(jQuery.trim(value)=='') {

	messages.push("User Authen Email cannot be blank.");

}





if(jQuery.trim(value)!='' && !value.match(/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/)) {

	messages.push("User Authen Email is not a valid email address.");

}




if(jQuery.trim(value)!='') {

	

if(value.length>320) {

	messages.push("User Authen Email is too long (maximum is 320 characters).");

}


}


},'summary':true},{'id':'UserAuthen_user_authen_username','inputID':'UserAuthen_user_authen_username','errorID':'UserAuthen_user_authen_username_em_','model':'UserAuthen','name':'user_authen_username','enableAjaxValidation':false},{'id':'UserAuthen_user_authen_hashed_pass','inputID':'UserAuthen_user_authen_hashed_pass','errorID':'UserAuthen_user_authen_hashed_pass_em_','model':'UserAuthen','name':'user_authen_hashed_pass','enableAjaxValidation':false},{'id':'UserAuthen_user_authen_ctext','inputID':'UserAuthen_user_authen_ctext','errorID':'UserAuthen_user_authen_ctext_em_','model':'UserAuthen','name':'user_authen_ctext','enableAjaxValidation':false},{'id':'UserAuthen_user_authen_creation','inputID':'UserAuthen_user_authen_creation','errorID':'UserAuthen_user_authen_creation_em_','model':'UserAuthen','name':'user_authen_creation','enableAjaxValidation':false},{'id':'UserAuthen_user_authen_confirm','inputID':'UserAuthen_user_authen_confirm','errorID':'UserAuthen_user_authen_confirm_em_','model':'UserAuthen','name':'user_authen_confirm','enableAjaxValidation':false},{'summary':true},{'summary':true},{'summary':true}],'summaryID':'user-authen-form_es_','errorCss':'error'});

jQuery('[data-toggle=popover]').popover();

jQuery('body').tooltip({"selector":"[data-toggle=tooltip]"});

});

/*]]>*/

</script>

which we can see only validates email address… i dont know what is happening … is it because yii booster …?

Hi

Good method trail error method :)

Just cut some code and try to reload page… if it work… then copy extra code… try like this…

It may help to identify some problems… it one of the way to point problems :)