The view for one of models uses the $this->widget(‘zii.widgets.CDetailView’ approach to show an individual record. I wasn’t too keen on layout of this with its tables so I decided to code it directly into the HTML like so:
Not really it just provides ease of use in that you don’t have to write lots of markup. Although you could have created a component to inherit the CDetailView and given it a custom name and created the custom markup in there. That way you could reuse it without lots of code duplication.
Yeh CDetailView is pretty useless unless your doing a CMS. I think the approach I am going to take is to extend CDetailView and reuse that in future projects. Basically just try to use as much yii built in functionality as I can!!