indexcolumn Index in Admin

For index in ADMIN view you can use this extension

Just copy to your extensions folder, And put below code to your admin view.

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
**                array(
                    'header'=>'#',
                    'class'=>'application.extensions.indexColumn.IndexColumn',
		),
**                ...........
                ...........
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
1 0
2 followers
203 downloads
Yii Version: Unknown
License: BSD-2-Clause
Category: Others
Developed by: sarthak
Created on: Dec 7, 2013
Last updated: 10 years ago

Downloads

show all