about_controller index action will automatically become /about/. You only do routes if you want custom looking urls that cant be done using the controller/action setup.
On Feb 13, 6:29 pm, Mark Thien <[email protected]> wrote: > Hi guys, > > I tried to use cakephp routes function but I just couldn't get it to > work. I have read thru the documentation > athttp://book.cakephp.org/view/46/Routes-Configuration > but there isn't any simple complete example. > > What I want is just, for example, I have a page like about.php. I want > cakephp to route user to this page when they > enterhttp://www.menggaris.com/about/. > so what code should I place inside app/config/routes.php and what code > I gotta write inside app/controllers/about_controller.php ? > > In addition to that, if I want my home.php to be served when user > enterhttp://www.menggaris.com, how can I configure that? > > Appreciate anyone can help here. > > Thanks & Regards, > Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
