It was indeed a very good idea. I created a Calendar controller and a Results controller to hande both events/games and results of these events/games. In each controller, I created the proper action to generate the elements that are included in the home page.
Now I need to do the entire page for events/games and results. I *would like* to use the same controllers I made, but I am totally clueless on how to paginate different models within a controller. Or would it be easier (if possible at all) have a custom SQL query that will fetch both games and events ordered by date, even if games and events dont have the same data at all (except for date). Thanks a ton =) On 30 sep, 21:01, Adam Royle <[EMAIL PROTECTED]> wrote: > I've used this before and it works well, with the ability to cache the > element easily as well. > > http://bakery.cakephp.org/articles/view/creating-reusable-elements-wi... > > However, many people advise against using (abusing?) requestAction as > it executes a whole new page request. > > If you cache the output however, it can be a good technique. > > Cheers, > Adam > > On Oct 1, 9:59 am, Jimmy Bourassa <[EMAIL PROTECTED]> wrote: > > > I've been thinking about how to do this cakelike and so far I haven't > > found anything that is not messy (and mostly because I am fairly new > > to cake should I say) > > > Heres what I would like to do. I have Games and Events. On my > > homepage, I want a "Coming up" section to show, let's say, the next > > five event/games ordered by date. > > > So basically I need to gather information from two different models in > > one single view (or element I think it'll be). And I need to be able > > to order the whole lot by date. > > > Should I create a controller that uses ($var uses) Games and Events? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---