Use an element (with caching), I guess. Do you have a model & controller for this data?
On Mon, Apr 20, 2009 at 10:44 AM, Art <adeho...@gmail.com> wrote: > > Hi all, > > I'm building a site which is going to use two sidebars, the content of > which is pulled from the database. These will appear on every page of > the site. Since the sidebar data isn't really related to the main > content of the page, I'm not sure what the best way is to pull it in. > I'm sure I could just do a direct non-cake call to the database in my > default.ctp, but that doesn't seem like the right way to do it. > > What is the preferred method or "best practice" for this sort of > thing? > > Thanks, > Art > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---