In my application, I have a view which takes input for two related active record models, however when I validate them I can only pass one of them to an error summary, so I have to have two error summaries like so:
<?php echo CHtml::errorSummary($model1); ?> <?php echo CHtml::errorSummary($model2); ?>
The problem is that I get two "Please fix the following input errors:" headings when I really only need the one.
If CHtml::errorSummary could take a CModel or an array of CModels as its first parameter, and in the latter case just loop, it would cater for this.