On Tue, Mar 18, 2008 at 07:25:02AM -0700, Malfojan wrote: > > Hi, > > I've got a very simple page, header, left menu, right content, footer. > Menu items are generated from the database. > > What is the easiest way of adding menu into the every page?
Hi! My opinion is the next: the best way is AJAX. The header, left menu, right content, footer are different divs. At first load you generate all of divs include the menu. The user click the menu item and this call through AJAX controller methods and load results in the divs. for example: The user clicked the products menu item. This call the getProductsMenu() (this will be loaded in the <div id="menu"></div> getProductsMainPage() (this will be loaded in the <div id="content"></div> This is my way. I think this is not the best :D András -- -- Csanyi Andras - http://sayusi.hu - Sayusi Ando -- -- "Bízzál Istenben és tartsd szárazon a puskaport!" - Cromwell --
