you should query the tables from controller e.g app_controller, use
beforeFilter or beforeRender callbacks in app_controller to have menus
for all pages.
Then set menu array to the view. Use helper to generate menu markup.
it's more close to MVC pattern.




On Aug 31, 4:56 pm, wgrant <[EMAIL PROTECTED]> wrote:
> Hello,
>
> My application has a menu bar on every page that is defined in the
> layout.  The elements for the drop menus are stored in my database.
> It feels right to use a helper to create an array of the menu items to
> pass to the views / layouts that may need to display a menu.  However,
> is it correct to query the table from the helper or should I do that
> somewhere else?
>
> Thanks in advance for helping a fresh caker!


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to