You can expand the widget using the following steps:
Copy CListView.php from / (yii root) / framework / zii / widgets to / (application root) / protected / widgets
Rename the BineshListView.php File
Open BineshListView.php. Add this before class declaration.
Yii::import("zii.widgets.CListView");
Change the first line of the class declaration to:
class BineshListView extends CListView { ...
You now have your own BineshListView class that you can customize. To use it in a view, you can call it just like a CListView
$this->widget('application.widgets.BineshListView', array( 'data'=>$model, etc... ) );
I add that BineshListView inherits all the properties and methods of CListView. Therefore, if you do not need to configure a property or method and you want to use the original CListView behavior, you can remove the property or method from BineshListView.
source share