[TYPO3-50-general] Discussion: ActionController Method Dispatch
Robert Lemke
robert at typo3.org
Mon Jul 6 11:16:39 CEST 2009
Hi Sebastian,
On 05.07.2009, at 21:58, Sebastian Kurfürst wrote:
> there is one last thing I want to discuss with you concerning FLOW3
> MVC for now.
> The method dispatch in ActionController: This is done like that:
>
> foreach (get_class_methods($this) as $existingMethodName) {
> if (strtolower($existingMethodName) ===
> strtolower($actionMethodName)) {
> $actionMethodName = $existingMethodName;
> break;
> }
> }
> Wouldn't just calling the method via "callUserFunc" be enough?
No, because - due to the routing mechanism - $actionMethodName could
for example
be "dosomethingstupidAction" while $existingMethodName is something like
"doSomethingStupidAction".
> The user would get a fatal error right away if this method does not
> exist.
See the problem: We don't want that users get any fatal errors - only
exceptions ...
Cheers,
robert
More information about the TYPO3-project-5_0-general
mailing list