Pages

Friday, August 2, 2013

A Little Bit More About Controller

Zend_Controller_Front implements the Singleton pattern, that means it can be initialized in the project only once.

When you call a method dispatch(), the manager goes into a loop of dispatching passing three events:
Routing defines what module, controller and the event can be called. If other ways are not written, then: site.ru/modules/controller/action/var1/value1/var2/value2 /.

You can also override the paths through Zend_Controller_Route, but more on that in the next article.
Dispatching – checking for the called module, controller, and events and call events.
Answer – the view rendering.

No comments:

Post a Comment