Cactiveform and error messages


I use the enableClientValidation option in a CActiveForm. When the page is displayed, the yii script is added at the end.

Everything is ok, except that I only use the error and success css classes from ClientValidation (not the error messages). The solution I found is simply not echo the following line :

<?php $login_form->error($login_model,'password'); ?>

The input field is still validated with classes but no messages.

But I don’t like to have a big script at the end of my page (the one from yii) for nothing since I use only the css classes …

Anyone can help me ?

Thanks Maxime.