You're correct about the welcome, creating a page for that under
views/pages would do the job just fine.

As for the other part, it depends how you want to deal with it. You can
use $this->requestAction('/controller/action'); to pull in data from
any other controller you like (you can use this in the controller or
the view) - but it depends entirely on what the layout of your page is.

For your home page, as an example (and this may not work) - create the
file home.thtml under views/pages - this is the default page for your
site, unless you've edited the routes.

In this file you could use $this->requestAction('/news/latest'); and
$this->requestAction('/cases/latest'); to pull in the news or cases you
want to display on your home page. That'd work, as long as you made
sure you had the action for latest in each of your controllers. That's
how I'd do it, there's probably a better way! :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to