Thanks for you reply, sure i need to use the elements but for those elements from where i will get the data extracted from the database.
For accessing the database for any layout or element we needs to have an controller and model. But for default.thtml's elements from where i can access the controller and models ? Thanks On Aug 14, 11:32 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I have some menus that are stored in the database. I want to show that > > menus in all the pages. In other pages we have controllers etc. within > > those i can use the logic for menus. but how to deal with that in > > default.thtml as it does not have any controller. > > You want to create elements for those menu items. > > * read the manual section on elements > * go to the amazing IBM tutorial about > CakePHPhttp://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html > > Register for an IBM id if you do not already have one and go through > that tutorial. > > -- > Chris Hartjes > Senior Developer > Cake Development Corporation > > My motto for 2007: "Just build it, damnit!" > > @TheBallpark -http://www.littlehart.net/attheballpark > @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
