On Tue, Jan 20, 2009 at 4:39 PM, teknoid <[email protected]> wrote:
>
> 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'));
>
Nice. Thanks teknoid :)
- Gonzalo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---