Hi,
I wan to know is there a way to use CJuiTabs inside other CJuiTabs. My site’s requirement is such that i need to display tabs inside the main tab area when one of the tabs is clicked. and data for all the tabs comes from different controllers. Here’s the juiTabs code i am using:
view 1 in one controller:
$ajaxUrl6 = $this->createUrl(‘user/myarea’);
$ajaxUrl7 = $this->createUrl(‘project/projects’);
$this->widget(‘zii.widgets.jui.CJuiTabs’, array(
'tabs'=>array(
// panel 3 contains the content rendered by a partial view
'Account'=>array('ajax'=>$ajaxUrl6),
'Projects'=>array('ajax'=>$ajaxUrl7),
),
// additional javascript options for the tabs plugin
'options'=>array(
'collapsible'=>true,
),
));
view 2 in other controller, opened by clicking on one of the tabs in first view
$ajaxUrl8 = $this->createUrl(‘project/new’);
$ajaxUrl9 = $this->createUrl(‘message/create’);
$this->widget(‘zii.widgets.jui.CJuiTabs’, array(
'tabs'=>array(
'View Bids'=>array('ajax'=>$ajaxUrl8),
'Message'=>array('ajax'=>$ajaxUrl9),
),
// additional javascript options for the tabs plugin
'options'=>array(
'collapsible'=>true,
),
));
But, it doesn’t display the tabs in second view.
Regards,
Kul.