Here I attach an enhancement that my coworker did for our project, that may be useful and we think it will help others in the same situation.
For example, you have Items you want to insert a separator between items, that should not appear in the last item:
Item1
Item2
Item3
Item4
This way, you can define your listview like this:
$this->widget( 'zii.widgets.CListView',
array(
'dataProvider' => $events,
'itemView' => '/site/_wall_item',
'separator' => '<hr class="wall"/>',
'template' => '{items}',
)
)
);
Attached is the change. It may be optimized, but it works for us.
Credits go to my coworker, Ernesto Borio (petruza, here).
1286