Move menu items from layout file
Posted 24 August 2009 - 02:26 AM
I want to remove the menu items of applications from main.php to somewhere else.
I dont want to put it in the layout file "main.php". (with a little instruction) Please suggest which file is suited for keeping these items in?
Posted 24 August 2009 - 04:33 AM
I want it to appear on all pages. I Just dont want the code in the main.php file. I suppose main.php file in the layouts is not suitable for this data.
Posted 24 August 2009 - 06:29 AM
Posted 24 August 2009 - 11:08 PM
Yes we are talking about views/layouts/main.php. mainmenu is a widget which processes the menu items which are passed as parameters from the main.php file. I don't want to place the code (parameters) for menu items here in the main.php and want to separate it from the layout file. Where can I put that?
Posted 07 September 2010 - 06:01 PM
Hey dude. You can create a file separeted. and them call $this->renderPartial('psth/to/view'); on your views...