#013772: [MvcTools] Router should provide default action name

Description:

Actually I don't like having multiple actions in one controller class. Therefor I didn't give an $action parameter to the contstructor of the RailRoute. The resulting action method name is 'do', but I can not define a method with that name, since 'do' is a reserved word.

The $action parameter should either be required or there should be a default action name like doRun.


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Action names are now required for the ezcMvcController -- if you don't like that, you can always inherit from this class and either change the name generation method (createActionMethodName()) or by changing the constructor and createResult() method in the inherited class.

#258626 by Derick Rethans on October 17th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components
Affects Unknown
Fix Version 2008.2alpha1 - eZ components 2008.2alpha1
Reporter Thomas Koch
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created October 16th, 2008
Updated October 17th, 2008
Resolved October 17th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels