问题
Hi Need to confirm Zend Framework Hierarchy of Objects ,
Zend_Applicationhas a Property Object Bootstrap- Bootstrap has a Property Object
Zend_Controller_Frontinside Zend_Controller_Fronthas nested Objects like Request , Response , Plugins and also a dispatcher() method through dispatcher Interface- When
Zend_Front_Controller'sdispatch()method is called a Controller Method is called as viewed in Request Object. - Now,
Zend_Controller_Actionhas a Variable called$viewwhich stores the Name of the PHTML Script - Now ,
Zend_Controller_Actionhas a render() which basically does include() for the given PHTML Script - When everything is done by PHP Interpretor , the Response comes back to Browser
Did I get it right , If not please correct
Thanks
回答1:
This is explained at
- Zend_Controller Basics and
- Zend Framework MVC Request Lifecycle and
- Zend Framework Dispatch Workflow
Usually I do not like pointing to external resources without giving a few words to it, but to explain what's going on is too much to type in my own words, so bear with me on this one.
If the explanation at the given links dont suffice, you could install XDebug and step through the execution flow if you want to know all the nittygritty details.
回答2:
Here is a bit less orthodox view on how zend framework application could be architectured.
来源:https://stackoverflow.com/questions/3609176/zend-framework-architecture