Zend Framework, the standard dispatcher provides enough functionality for nearly every situation, but if you
need something special, it is easy to write your own and fit it into the front controller. The key things that the
dispatcher controls are formatting of the controller class name, formatting of the action function name and
calling the action function itself.
Zend_Controller_Dispatcher_Standard is where the rules concerning case are enforced, such that the name
format of the controller is always TitleCase and only contains alphabetic characters. The dispatcher’s
dispatch() method is responsible for loading the controller class file, instantiating the class and then calling the
action function within that class. Hence, if you decided that you wanted to reorganize the structure so that
each action lived in its own class within a directory named after the controller, you would supply your own
dispatcher. Dispatching is the process of actually calling the correct function in the correct class. As with everything in the
Zend Framework, the standard dispatcher provides enough functionality for nearly every situation, but if you
need something special, it is easy to write your own and fit it into the front controller. The key things that the
dispatcher controls are formatting of the controller class name, formatting of the action function name and
calling the action function itself.
Zend_Controller_Dispatcher_Standard is where the rules concerning case are enforced, such that the name
format of the controller is always TitleCase and only contains alphabetic characters. The dispatcher’s
dispatch() method is responsible for loading the controller class file, instantiating the class and then calling the
action function within that class. Hence, if you decided that you wanted to reorganize the structure so that
each action lived in its own class within a directory named after the controller, you would supply your own
dispatcher.
