can we pass a session variable in mbmenu array??

 <?php $this->widget('application.extensions.mbmenu.MbMenu',array( 


				array('label'=>'Home', 'url'=>array('/home')),

                array('label'=>'School', 'url'=>array('/school'),


					array('label'=>'Edit School Details'),


this is my menu with dropdown list…in this i want a session variable to be pased as url

DId you try what I said ?

Should work


                array('label'=>'Home', 'url'=>array('/home',array('session_id'=>$_SESSION['id']))),



                array('label'=>'Home', 'url'=>$_SESSION['url']), 

hehe hi again…

what i need to ba pase in url is like myproject/index.php/school/EditSchool/1

but i got it as


i used your code as

array('label'=>'Edit School Details','url'=>array('/school/EditSchool',array('id'=>Yii::app()->user->schoolId))),

how is your url rules ?

should contain


to be like you said



and check what it contains, looks like it contains an array

Yes u r rit gustavo,it is being passed as array…what i did is i just removed the array thats it…

Now it Works…!!! :D

Glad I could help Srav

hey, its working fine with firefox browser but session id is not being passed in other browsers like chrome…what can be done?

be sure that you have cookie enabled in this browser and you have logged in …



to see what it contains