Zend Framework Architecture

耗尽温柔 提交于 2019-12-13 16:08:08

问题


Hi Need to confirm Zend Framework Hierarchy of Objects ,

  • Zend_Application has a Property Object Bootstrap
  • Bootstrap has a Property Object Zend_Controller_Front inside
  • Zend_Controller_Front has nested Objects like Request , Response , Plugins and also a dispatcher() method through dispatcher Interface
  • When Zend_Front_Controller's dispatch() method is called a Controller Method is called as viewed in Request Object.
  • Now, Zend_Controller_Action has a Variable called $view which stores the Name of the PHTML Script
  • Now , Zend_Controller_Action has 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!