How To Use Two Dataproviders In Clistview

hi, can anyone tell me how to use two data providers in one Clistview?

Thanks





It should be the following :


$this->render('index',array(

        'dataProvider1'=>$dataProviderFirst,

        'dataProvider2'=>$dataProviderSecond

    ));

Then in your view :


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

    'dataProvider'=>$dataProvider1,

    'summaryText'=>'',

    'itemView'=>'_compact View',

 )); 

 ?>






[color="#A0522D"]If it works do not hesitate to click +1 button[/color]