/subdomain:www/home
/subdomain:forum/topic/23
etc..
now I want that some of those named-arguments go to certain
controllers and all the others go the pages-controller
but I am a complete noob when it comes to routing. I tried this, but
obviously it doesn't work:
Router::connect('/:subdomain/*', array('subdomain' => 'forum',
'controller' => 'forum'));
Router::connect('/:subdomain/*', array('subdomain' => 'wiki',
'controller' => 'wiki'));
Router::connect('/:subdomain/*', array('subdomain' => 'docs',
'controller' => 'docs'));
Router::connect('/:subdomain/*', array('subdomain' => '*',
'controller' => 'pages'));
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment