Basically, I want to do this
Router::connect('/:username', array('controller' => 'users', 'action'
=> 'view'), array('username' => '[A-Za-z0-9_-]+', 'pass' => array
('username')));
But there's two problems:
1) If the user doesn't exist, it goes into a redirect loop
2) It overrides the controller URLs (if I have an articles_controller,
and try to access it via /articles, it would search for the user
'articles' instead - bad!)
Is there anyway to route all "uncaught" (doesn't have an associated
controller) URLs to point to a user page?
Thanks!
Mark
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---