This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
Assume that you have teachers and students model.
The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.
You usually take a model instance passed into your view to provide data to a CGridView in this way: