Hi, I’m having a problem with getting content from CActiveDataProvider and making work it with any slider. Is there any possibility to create dynamic content slider (I want to take data from dataProvider ex. $data->title), or any extension which provides DataProvider usage?
<?php $this->widget('zii.widgets.CListView', array( 'dataProvider'=>$dataProvider =new CActiveDataProvider('News', array( 'criteria'=>array( 'order'=>'create_time DESC', 'limit'=>3, 'offset' => 0 ), 'pagination' => false )), 'itemView'=>'../news/_slider', 'summaryText'=>'', )); ?>
I want to use this code (which is working for 3 last news, but obviously giving three other "sliders"). Could You help me a little bit? Thanks for help.