Thursday, June 25, 2009

Creating a route similar to the Admin route

This must be incredibly simple, but the Router docs are just waaay to
confusing for me.

I want to have :

website.com/admin/controller/action *connected to* controller/
admin_action (which is done by setting the value of Routing.admin to
'admin')

But, aside from having that, I also want to have:

website.com/mod/controller/action *connected to* controller/mod_action
(notice now it's 'mod', not 'admin')

I just can't seem to figure it out.

Any help will be greatly appreciated. Thanks!

--~--~---------~--~----~------------~-------~--~----~
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: