This is a description of my code. I have parent tab "General" and other parent tabs of-course. but i would like to render sub tabs in general tab. This scripts render the child tabs in parent line along with 'general' tab and inside general tab as well.
Very wired. Any help will be highly appreciated
Very wired. Any help will be highly appreciated
[color="#2F4F4F"][code]<?php <?php $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'General')); ?>//PARENT TAB //SUB TABS $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sub1')); ?> child contents1 <?php $this->endWidget(); ?> <?php $this->beginWidget('system.web.widgets.CClipWidget', array('id'=>'sub2')); ?> child contents2 <?php $this->endWidget(); $tabParameters = array(); foreach($this->clips as $key=>$clip) $tabParameters['tab'.(count($tabParameters)+1)] = array('title'=>$key, 'content'=>$clip); $this->widget('system.web.widgets.CTabView', array('tabs'=>$tabParameters)); ?> <?php $this->endWidget(); //PARENT TAB1 $tabParameters = array(); foreach($this->clips as $key=>$clip) $tabParameters['tab'.(count($tabParameters)+1)] = array('title'=>$key, 'content'=>$clip); $this->widget('system.web.widgets.CTabView', array('tabs'=>$tabParameters)); ?>[/code][/color]