What do you think of a small modification of CController.render method to accept array of views instead of single view. If array is passed, than the method would renderPartial each view using the same data and would pass variables $content1, $content2, etc. into layout.
Yes it’s a good way. But you have the main content in the middle and the portlets/widgets on the right and on the left. If you want to update the widget in ajax independently, there is no way… or I have miss something?
It should work to put the widget in a view file and use renderPartial() for initial load and ajax update. (So far, I’ve just used this method for main content.)
Take a closer look at the blog demo. The post content and comments are rendered in two partials nested within an outer partial. Read the section called Nested Caching in the User Guide for a explanation of caching the outer view partials and the inner view partials independently(partials are called view fragments in the docs as in fragments of the overall view).
If you think of the outer partials as layout regions, you could have outer partials for embedding your left and right columns as well as your content. Inner partials could be rendered in each one of these and cached independently. You could also have other regions (e.g., a header partial with embedded partials for artwork, banners, menus, breadcrumbs, etc.