2009年6月8日星期一

Re: [fw-mvc] Best practice for default module directory

-- Brenton Alker <brenton@tekerson.com> wrote
(on Monday, 08 June 2009, 10:42 PM +1000):
> Is the "correct" location for the default module directly in the
> application directory, or in the modules/default directory?
>
> I think I read that the initial intention was for it to go in the
> application directory but general usage was in modules/default. Given
> Zend_Tool creating a non-modular layout by default, I am currently
> leaning towards the application directory but am wondering if there is
> either a general consensus or an "official" recommendation.

Actually, Zend_Tool now has module support (as of 1.8.2). When you
create a module, it places it in application/modules/<modulename>, and
creates the appropriate directory structure.

The default module is assumed to be directly under application/, and
this is how Zend_Tool was written. The idea is that your default module
is typically non-reusable, and very site-specific, and as such falls
outside of your other modules (which should typically be re-usable).

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/

没有评论: