It's simple,

If you want to have the the page: http://www.example.com/testpage.html which
goes to controller pages_controller and function check(). You need to do:

Router::parseExtensions('html');
Router::connect('/testpage', array('controller' => 'pages', 'action' =>
'check'));

or

Router::connect('/testpage.html', array('controller' => 'pages', 'action' =>
'check'));




On Tue, Dec 28, 2010 at 5:14 PM, John Maxim <goog...@gmail.com> wrote:

> Refer to link below:
> http://book.cakephp.org/view/1541/Routes
>
> I don't understand. What does it accomplish ??
>
> Do we normally change the route as shown from the link above ?
>
> Thanks,
>
> Maxim J.
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Vivi
http://photos.vr-3d.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to