home 首页 » 精彩博客 » 博客查看

Module Bootstraps in Zend Framework: Do's and Don'ts - Matthew Weier O'Phinney

 2010-03-12 01:40:07 

原文地址:http://weierophinney.net/matthew/archives/234-Module-Bootstraps-in-Zend-Framework-Dos-and-Donts.html

I see a number of questions regularly about module bootstraps in Zend Framework, and decided it was time to write a post about them finally.

In Zend Framework 1.8.0, we added Zend_Application, which is intended to (a) formalize the bootstrapping process, and (b) make it re-usable. One aspect of it was to allow bootstrapping of individual application modules -- which are discrete collections of controllers, views, and models.

The most common question I get regarding module bootstraps is:

Why are all module bootstraps run on every request, and not just the one for the requested module?

To answer that question, first I need to provide some background.


Continue reading "Module Bootstraps in Zend Framework: Do's and Don'ts"

收藏:

评论:共 
1
 条