This is a simple solution, that I prefer.
I ensure that all links to static pages point to .html file....
So our link:
www.example.com/pages/about_us
Becomes:
www.example.com/about_us.html (i.e. echo $thml->link('About Us', '/
about_us.html'); )
Then a single route takes care of the rest (for any static page on
your site):
Router::connect(’/(.*).html’, array(’controller’ => ‘pages’, ‘action’
=> ‘display’));
On Jan 20, 1:32 pm, "Jon Bennett" <[email protected]> wrote:
> Hi leo,
>
> > And that is what it does. Go tohttp://univerd.com/mantenimiento-jardin
> > . That is a pages page. Nothing is specifically defined for that page.
>
> ok - but how!? the routes you provided do not have an asterix after
> the first trailing slash, so how is cake getting the value from the
> url passed as a param?
>
> confused :/
>
> j
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---