Today I got to wondering about admin routing. I used it in my first Cake project and this morning got to wondering what it does differently than "normal" prefix routing. The only information I've dug up so far simply indicates that setting "Routing.admin" to whatever value allows you to prefix methods with that value and access them through URIs where that value appears first:
Configure::write ( 'Routing.admin', 'administrator' ) -> adminstrator_method_name() -> /administator/controller/method_name Totally get that and it's a nice shortcut. What I'm wondering is what's special about "Routing.admin" that keeps me from setting: Configure::write ( 'Routing.api', 'api' ) -> api_method_name() -> /api/ controller/method_name I realize I can use prefix routing to do this, but am curious why the "shortcut" works for admin, but not for other prefixes. An academic question of sorts, but I haven't found a discussion of the differences in my searches. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
