routes.php instructs cake to direct the user to controller => pages, action => display, home if the request comes from "/"
pages controller tells cake to go looking for views under APP/pages it then rewrites anything from pages/display/<page> to /pages/<page> pretty much as simple as that. if you remove the route entirely, you can get to your home page by visiting app/pages/display/home ... On Thu, Jul 12, 2012 at 2:24 PM, Albert 'Tigr' <[email protected]> wrote: > Actually, there is a PagesController: > http://book.cakephp.org/2.0/en/controllers/pages-controller.html > > > On Wednesday, 11 July 2012 18:15:45 UTC+2, Marsson wrote: >> >> Hi there! >> >> >> I´m a beginner so I´ve looking the folder structure and files of the >> 2.2.0 distro. >> >> I´ve noticed there is no action (and Controller) to call home.ctp . I >> mean neither PagesController or AppController or even Controller.php have a >> function called "home". >> >> So how does it get to be called ? >> >> Thanks! >> >> >> -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
