cool thanks a lot. I figured I must have been missing something when I considered doing the route thing. Guess not.
On Oct 23, 2:53 am, Céryl <[email protected]> wrote: > You're actually quite right... It's kind of a staticpagefrom the > getgo... > > However, there are two ways to make it dynamic. You can use a > requestAction on thehome.ctp to call an action from anothercontrollerand get > dynamic data on thehome.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 indexpagebut since it's under > > the /pages directory doesn't that force it to be a staticpage? I > > wonder how to usehome.ctp as a dynamicpagethat 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 -~----------~----~----~----~------~----~------~--~---
