Changing Wrapper Html Element Of Items Of Clistview

Hi All,

I need to use li instead of div for wrapping items in CListView. I am doing something like this:




$this->widget('zii.widgets.CListView', array(

	'dataProvider'=>$userTopics,

	'itemView'=>'_topic',

	'itemsTagName '=>'li',

	'id'=>'topics-list',

	'template'=>'{items}'

	)

);




I think it should work, but I get the error saying ‘itemsTagName’ is undefined property in CListView. I am using Yii 1.1.15. I checked the CListView.php in the framework and the property exists there. Being a public property, it should be possible to overwrite but I get that error.

Can anybody please help me?

Regards,

Sushil

Just make sure that you’re definitely loading the right version of Yii:




echo Yii::getVersion();



itemsTagName is for all items together… Use tagName for individual views…

And you got an extra space behind itemsTagName