Hey Yujin,
I do something similar.
<?php
// In order for this to work well you need to explicitly declare you
other controllers.
Router::connect('/faqs/:action/*', array('controller' => 'faqs',
'action' => ':action'));
// This line is a catch all
Router::connect('/*', array('controller' => 'pages', 'action' =>
'display'));
?>
Check out this article.
http://bakery.cakephp.org/articles/view/custom-urls-from-the-site-root
Hope this helps.
james
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---