I have a 1.2 app that I'm updating to 1.3. I need to send all top
level requests like /foo to a controller action (/sites/view/$1) if
they are not a valid controller. So in my 1.2 app I had a route like
this (incredibly ugly I know):
Router::connect('(?!admin|billings|carriers|clips|cliptypes|contacts|
domains|faqcategories|faqs|leadcomments|leads|leadnotes|sites|teams|
users|signupstart|botickets|salestickets|callplaylists|clipcreators|
prospectingplaylists|roles|sitethemes|teamannouncements|teamproducts|
teamsupportitems|teamthemes|trainingplaylists|trainingfiles|
sitetransfers|stats|paymentperiods|search)(.*)', array('controller' =>
'sites', 'action' => 'view'));
In cake 1.3 I receive the missing controller message instead of the
request getting sent to sites->view().
Thanks for any help,
Jeremy
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment