Re: [Components] MvcTools: camelcase action methods

2009-05-15 Thread Derick Rethans
On Sat, 9 May 2009, Hans-Christian Otto wrote: I just found a regexp in MvcTools that is senseless from my point of view. In ezcMvcController::createActionMethodName you do $actionMethod = 'do' . preg_replace( '@[^A-Za-z]@', '', preg_replace( '@[a-za-...@e', 'ucfirst( \\0 )',

Re: [Components] MvcTools: camelcase action methods

2009-05-15 Thread Bertrand Dunogier
2009/5/15 Derick Rethans d...@ez.no On Sat, 9 May 2009, Hans-Christian Otto wrote: to transform an action like foo_bar to a method name like doFooBar. Wouldn't dofoobar be enough? Using $actionMethod = 'do' . preg_replace( '@[^A-Za-z]@', '', $action ); should result in the

Re: [Components] MvcTools: camelcase action methods

2009-05-15 Thread Derick Rethans
On Sat, 16 May 2009, Bertrand Dunogier wrote: 2009/5/15 Derick Rethans d...@ez.no On Sat, 9 May 2009, Hans-Christian Otto wrote: to transform an action like foo_bar to a method name like doFooBar. Wouldn't dofoobar be enough? Using $actionMethod = 'do' . preg_replace(