Skip to content

Instantly share code, notes, and snippets.

@muya muya/yiiCGridView.php
Last active Dec 17, 2015

Embed
What would you like to do?
Example of a Yii CGridView Widget used in the StudentPortal Project
/**
* 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
You can’t perform that action at this time.