You're actually quite right... It's kind of a static page from the
getgo...

However, there are two ways to make it dynamic. You can use a
requestAction on the home.ctp to call an action from another
controller and get dynamic data on the home.ctp, or you can make a new
homepage as the standard (like for instance /posts/index for a blog or
something) by adjusting the routes in the config/routes.php file...
Add (Or change) this route:

Router::connect('/', array('controller' => 'yourcontroller', 'action'
=> 'youraction'));




On 23 okt, 09:03, transpar3nt <[email protected]> wrote:
> I actually am confused about something similar (but I have read
> through most of the manual).  I understand that the app/views/pages/
> home.ctp acts as the web site's root index page but since it's under
> the /pages directory doesn't that force it to be a static page?  I
> wonder how to use home.ctp as a dynamic page that gets data from a
> model?
>
> I know this is newbish but I appreciate if anyone can answer my
> seemingly simple question.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to