showErrorSummary and CForm with nested forms

Based on this discussion which I encountered myself:

http://www.yiiframework.com/forum/index.php?/topic/7651-cform-showerrorsummarytrue-but-no-errors-shown/page__p__38822__hl__+howErrorSummary#entry38822

I am also having trouble with using one single error summary with CForm with nested forms.

Having separate error summaries for each nested form worked but seems ugly because a summary form breaks the form in the middle

I have tried creating a single error summary if you go through the more classical approach, instead of using CForm, and this code below worked perfectly creating a single




<?php

print $form->errorSummary($models);	//yes this can indeed be an array of models (since in this form we have multiple models) 

?>



Is there a missing element inside Yii or am I using it wrong?

Note: I am using version Yii 1.1.8