Ok its conf but how can i use ACL and admin routing together? atta
On Feb 26, 6:33 am, Evelio <[email protected]> wrote: > I'm so new in CakePHP but... > > Routing.adminis an configuration value for define the prefix that > will use CakePHP for name and route the "admin" actions... i.e. if you > view the AuthComponent Class in the initialize function; CakePHP read > this value to determine how are called the "admin" CRUD actions and > add it to actionMap (for controller basedACL)... > > it isn't a kind of "shortcut" to route whatever, this is an > configuration value > > Regards > > On 23 feb, 10:06, Rob Wilkerson <[email protected]> wrote: > > > Today I got to wondering aboutadminrouting. I used it in my first > > Cake project and this morning got to wondering what it does > > differently than "normal" prefixrouting. 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 prefixroutingto do this, but am curious why the > > "shortcut" works foradmin, 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 -~----------~----~----~----~------~----~------~--~---
