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).


   <?php

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

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

        'type'=>'tabs',

        'tabs'=>array(

            array('label'=>'General',

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

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

            array('label'=>'Personal',

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

                'itemOptions'=>$itemOptions),

            array('label'=>'Experience',

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

                'itemOptions'=>$itemOptions),

            array('label'=>'Elligibility',

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

                'itemOptions'=>$itemOptions),

        ),

    ));

    ?>

Hi

i think you can use this extension…

http://www.yiiframework.com/extension/sl-ajax-tabs/

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