To access the homepage.
Create a controller called pages_controller in your controller folder.
and for the views create file in  views/pages/display.ctp

Hope that helps
Vinci



On Nov 19, 9:50 am, Grant Cox <[EMAIL PROTECTED]> wrote:
> Edit your /app/config/routes.php, you will see a line like:
>
> Router::connect('/', array('controller' => 'pages', 'action' =>
> 'display', 'home'));
>
> This means that an empty request is going to the PagesController,
> action "display" with the parameter "home.  So the same as calling /
> pages/display/home (try it, you'll see it shows the same page).
>
> You could copy the PagesController from /cake/libs/controller/
> pages_controller.php to /app/controllers/pages_controller.php and then
> edit it.  But it is probably best to just modify the route in /app/
> config/routes.php to point to whichever controller / action you want
> it to.
>
> On Nov 19, 1:50 pm, powtac <[EMAIL PROTECTED]> wrote:
>
> > How can I set up a controller which is called in the webroot, for
> > examplehttp://www.example.com. Wich controller is called there?

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