Ctabs Change Cmenu

Hey guys so I have user profile page where I want the users to be able to select content based on tabs. The issue is that I’m required to change the menu rendered by the layout CMenu widget & $this->menu for each tab. Does anyone have any good suggestions for this? The tabs at the moment render a partial view with unique content divs so I can update them with their respectful CMenu links. I’m using an extension of CMenu to have each link as an ajax link for said content divs (tested these and they do work).


    $itemOptions = array('class'=>'ajax-tab'); 

    $this->widget('bootstrap.widgets.TbTabs', array(




                'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'general'), true), 

                'itemOptions'=>$itemOptions, 'active'=>true),


                'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'personal'), true),



                'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'experience'), true),



                'content'=>$this->renderPartial('_profile', array('user'=>$model, 'header'=>'elligibility'), true),






i think you can use this extension…


hope it will be helpful

Sorry, i’m kind of a newbie to Yii. If I used this extension I’m assuming I could set each tab’s ‘ajax’=>array() to ‘update’=>’#myDiv’ or something similar? Or what would I be doing?

EDIT: That extension provides functionality for dynamically rendering the tabs through AJAX. That’s not what I want. I have tabs inside my index.php view and I want to change the CMenu displayed inside of index.php for each tab.

Sorry for double post, but is there any chance you can create Tabs, CJuiTabs, TbTabs, etc with static content while still giving it an ajax request? That would solve my issue