Yii CListview Tutorials

Yii CListview pager

Yii Pager. I explained about “How to change yii pagination text”. CGridview and CListview are the most used widgets in yii. It have the pagination number and text. Here i added source code to change the text of pagination header text, previous text, next text, first page text, last page text.This is the source code to change the yii default pager text for CListview. It is also common for CGridview […]... Read More »

Assign Tag And Class To CListview In Yii

Here I added the code for CListview of yii. Using this we can assign the parent tag name and class of parent tag to CListview. <?php $this->widget('zii.widgets.CListView', array( 'id'=>'commentslistview', /** tag name **/ 'itemsTagName'=>'ul', /** calss name **/ 'itemsCssClass'=>'commentslist', 'dataProvider'=>$commentsProvider, 'itemView'=>'_comments', )); ?>... Read More »