07 2016 档案

摘要:Zend\Mvc\MvcEvent继承自Zend\EventManager\Event,在Zend\Mvc\Application::bootstrap()执行时触发。如果你的控制器实现了Zend\Mvc\InjectApplicationEventInterface,MvcEvent将会被注入到这 阅读全文
posted @ 2016-07-31 15:01 三复苏 阅读(531) 评论(0) 推荐(0)
摘要:Zend-MVC intro Zend MVC层建立在servicemanager、eventmanager、http、stdlib、几个组件之上。相关组件介绍会在其他文章中详细说明。 除了以上4大组件外,MVC还暴露了几个sub-components:Router、Controller、Servi 阅读全文
posted @ 2016-07-22 17:25 三复苏 阅读(342) 评论(0) 推荐(0)
摘要:Applications 会期望用户提供一个配置好的ServiceManager。提供以下服务: 1、EventManager 2、ModuleManager 3、Request 4、Response 5、 RouteListener 6、Router 7、DispatchListener 8、Mi 阅读全文
posted @ 2016-07-21 02:19 三复苏 阅读(166) 评论(0) 推荐(0)
摘要:模块加载时事件触发的时间顺序: 0、loadModules(ModuleEvent::EVENT_LOAD_MODULES) 1、 loadModule.resolve(ModuleEvent::EVENT_LOAD_MODULE_RESOLVE):模块将被加载时触发,事件监听者将模块名解析成类的实 阅读全文
posted @ 2016-07-21 00:04 三复苏 阅读(459) 评论(0) 推荐(0)