Hi Steve,

> I am brand new to Cake and am trying to figure out what probably is a
> very simple problem. I have a News and Events page which has a model
> and controller spitting out all the news from the database, but I also
> have a separate static page stored in the pages directory that has
> mostly static content  but a dynamic News and Events callout box that
> lists the 3 latest news items. It seems silly to create another model/
> controller for this mostly static view just to get info that could be
> pulled directly from the News and Events model, but I'm struggling on
> how to do this. I've been reading on requestAction but have also heard
> people saying that was a poor way of accomplishing what I want to
> accomplish. As I'd like to learn the correct way to do it from the
> outset,  any ideas would be greatly appreciated, thanks.

An idea is to add an additional method to your controller (which also
means the view has to be moved away from the pages directory).

Hope that's enough to get you started ;-)

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to