CHtml::errorSummary support for multiple models

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.


So fast, again!! This is shaping up to be a fantastic framework.

Thanks for raising suggestions and finding bugs.

I hope Yii could get stable as soon as possible so that we release beta and formal versions soon.

I hope you don't mind if I keep them coming - I'm quite enjoying playing with Yii as it is forcing me to think about things in different ways, a lot of which I quite like.