I would say that element would be best but because you need to model->find you need to use something like requestAction or http://mark-story.com/posts/view/reducing-requestaction-use-in-your-cakephp-sites-with-fat-models
as your doing a little and only want template echo'd in view and calls to helpers and elements 2008/12/11 Rob Wilkerson <[EMAIL PROTECTED]> > > On Thu, Dec 11, 2008 at 12:04 PM, brian <[EMAIL PROTECTED]> wrote: > > > > This is what elements are for. There's no need to modify PagesController. > > This is true, so let me ask a couple of follow up questions around > best practices, etc. > > First, in this case, I'd only need this element once. Is an element > still the best option? > Second, how should I make a model available to the element so that I > can find() the records I need to display? > > Thanks for your help. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
