Thursday, June 25, 2009

RE: Creating a route similar to the Admin route

What your looking for is routing prefixes ;-)

Basic run down here:

http://www.sanisoft.com/blog/2008/04/04/the-prefix-automagic-in-cakephp-rout
ing/

HTH,

Paul.

-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of rpnunez@gmail.com
Sent: Friday, 26 June 2009 5:55 a.m.
To: CakePHP
Subject: 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!

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4186 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4186 (20090624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


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