Zend and default indexAction()
Posted: Wed May 06, 2009 10:48 am
I have a custom routing table setup but I still also have indexAciton() methods.
Do I need them or can I drop them? None of my routes (that I know of) point to that function
Ideally all my actions are well named and fit a specific purpose so I would prefer to drop it outright. Problems?
EDIT | In addition to the above assume I have a controller:action like...
Using a custom routing table can I drop the 'Action' part of the method?
Given a XML route like:
Would the above be accurate? Or would I use the actual class name and method -- which would make more sense anyways.
Cheers,
Alex
Do I need them or can I drop them? None of my routes (that I know of) point to that function
Ideally all my actions are well named and fit a specific purpose so I would prefer to drop it outright. Problems?
EDIT | In addition to the above assume I have a controller:action like...
Code: Select all
MyCustomObject::updateProfileAction()Given a XML route like:
Code: Select all
<example> <route>/:title/:page</route> <defaults> <controller>custom-object</controller> <action>update-profile-action</action> </defaults> </example> Cheers,
Alex