Yii Framework Forum: mbmenu - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

mbmenu Rate Topic: -----

#1 User is offline   sravani 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 22-January 11

Posted 26 February 2011 - 02:54 AM

can we pass a session variable in mbmenu array??

 <?php $this->widget('application.extensions.mbmenu.MbMenu',array( 
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/home')),
                array('label'=>'School', 'url'=>array('/school'),
				'items'=>array( 										 
					array('label'=>'Edit School Details'),
.........


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

#2 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 26 February 2011 - 03:03 AM

you should post it under extensions topic or as a comment in the extension's page

as for the question, I think just give it the url in the normal way would work
like
'items'=>array(
       		array('label'=>'Home', 'url'=>array('/home',array('session_id'=>$_SESSION['id']))),

--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#3 User is offline   sravani 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 22-January 11

Posted 26 February 2011 - 03:44 AM

View PostGustavo, on 26 February 2011 - 03:03 AM, said:

you should post it under extensions topic or as a comment in the extension's page

as for the question, I think just give it the url in the normal way would work
like
'items'=>array(
       		array('label'=>'Home', 'url'=>array('/home',array('session_id'=>$_SESSION['id']))),


ooh sory that i posted in a wrong place...
0

#4 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 26 February 2011 - 04:08 AM

Np, Its just to keep to forum organized so its easier to find what you are looking for
--
Extensions:
translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva
0

#5 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,354
  • Joined: 12-October 09
  • Location:Croatia

Posted 26 February 2011 - 10:04 AM

* moved to Extensions
Find more about me.... btw. Do you know your WAN IP?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users