Difference between #8 and #9 of
CGridView: Display the full record (actionView) in a CJuiDialog

Changes

Title unchanged

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

Category unchanged

Tips

Yii version unchanged

Tags unchanged

CGridView, CJuiDialog

Content changed


 
 
 
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',
[...]
14 0
20 followers
Viewed: 77 778 times
Version: 1.1
Category: Tips
Written by: Joblo
Last updated by: Joblo
Created on: Oct 22, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history