On 9/30/06, Neves <[EMAIL PROTECTED]> wrote:

Now I got it. I need to call www.mysite.com/pages/pagename to work.
That´s ok, but how can I use the url without the pages path:
www.mysite.com/pagename
Offcouse I don´t want to map one by one, I just want the framework to
check if a controller exists, if not, try to run only the view, with a
default layout and controller.

I know that I can create the file at webroot, but I want to keep using
the layout feature and otheres cake helpers.


The following route will allow you to get rid of the 'pages' portion of the url, but  this will also make other controllers not work (i.e. you want to add non-static functionality to your site.  All parameters get passed to the display action of the pages controller.

$Route->connect('/*', array('controller' => 'pages', 'action' =>'display'));


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to