Last active
December 17, 2015 18:48
-
-
Save muya/5655356 to your computer and use it in GitHub Desktop.
Example of a Yii CGridView Widget used in the StudentPortal Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CGridView widget | |
*/ | |
$this->widget('zii.widgets.grid.CGridView', array( | |
'id'=>'users-grid', | |
'dataProvider'=>$model->search(), | |
'filter'=>$model, | |
'columns'=>array( | |
'userID', | |
'firstName', | |
'lastName', | |
'userName', | |
'email', | |
/* | |
'status', | |
'dateCreated', | |
'insertedBy', | |
'dateModified', | |
'updatedBy', | |
*/ | |
array( | |
'class'=>'CButtonColumn', | |
), | |
), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment