Can I give error message for CActiveForm error and error summary from controller? so i don’t need to use rule in models
Can I give error message for CActiveForm error and error summary from controller? so i don’t need to use rule in models
actually to customise the message you can put it on the rules() like this
...
array('comment','length','max'=>1000, 'message'=>'some test!!!'),
...
So I think you still need to use rule in model
echo $form->errorSummary($model,
'text before summary container',
'text after summary container',
array('class'=>'alert')
);