CGridView: Display the full record (actionView) in a CJuiDialog

Comparing #8 with #9

Content


 
 
 
Note: This code is now part of the extension [quickdlgs](http://www.yiiframework.com/extension/quickdlgs/ "quickdlgs")
 
----------------------------------------------------------------------------------------------------------------
 
 
 
 
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view
as a page and afterwards returning back to the gridview.
[...]
<h1>View Address #<?php echo $model->ID; ?></h1>

<?php endif; ?>//--------------------- begin added --------------------------
 
<?php endif; ?>
 
//--------------------- end added --------------------------


<?php $this->widget('zii.widgets.CDetailView', array(
'data'=>$model,
'attributes'=>array(
'ID',
[...]