I am new to Cake but have prototyped a few simple apps. I am puzzled by the dispatcher strategy that maps URL directly into function names.
e.g. http://mycakeapp/control1/action1 maps into a direct method call on action1 of class control1 This means that many function names that cannot be overloaded in PHP cannot be used as action names. e.g. an action "list" mapping to a method "list" is not possible because "list" cannot be used as a method name I suppose you can create aliases to circumvent this problem but it seems a contradiction to the mantra of specifying everything once. Other frameworks solve this problem by mapping "action1" into a function name "action_action1" which is clearer and is valid for any word. It also makes it easier when reading the source code to pick out which methods are invokable as an action, and which methods are for internal use. Kace --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
