modifying files in your app directory is ok - is more code to supervise its how I would go about your objective (from what I understand of it) - mark's approach involves editing more files to set up - but works a treat.
requestAction can be ok - but can be problematic also can really slow down your app KISS - keep everything simple as possible though 2008/12/11 Rob Wilkerson <[email protected]> > > On Thu, Dec 11, 2008 at 6:35 PM, brian <[email protected]> wrote: > > > > The link points to some advice for *reducing* the use of > > requestAction(). In any case, I think it's really a relative thing. > > One has to weigh the advantages and disadvantages for using it in each > > situation. I certainly wouldn't use it in several elements on a page > > but I might for just one. Especially as the output can be cached. > > Yeah, sorry. I read the article, but was following up on a related > thought because the article, if I read it correctly, assumes the > presence of a controller to do this: > > $comments = $this->Post->Comment->recent(); > > In my case, the PagesController is being used and it seems like I > should avoid modifying that particular controller (though I have no > real basis for thinking that). Regardless, I'd rather not drop the > code in the controller to be executed for _all_ pages I may use since > this is only needed for one particular controller. > > Thoughts? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
