How can I pass output of a widget as content in CJuiTabs in Yii?
Here the code I tried and get error:
$this->widget('zii.widgets.jui.CJuiTabs',array(
'tabs'=>array(
'Tab1'=> array('content' => $this->widget('zii.widgets.CListView', array(
'dataProvider'=>$vulnerdataProvider,
'itemView'=>'_latest_vulner' )),
'id' => 'tab1'),
'tab2'=>array('content'=>'Content for tab 2', 'id'=>'tab2'),
),
// additional javascript options for the tabs plugin
'options'=>array(
'collapsible'=>true,
),
));
it gives this error:
Object of class CListView could not be converted to string
Edited: As well as Stu's answer I found this : http://yiibook.blogspot.nl/2012/09/handle-cjuitabs-in-yii.html