2009年4月9日星期四

Re: [fw-mvc] Autoloading module resources with 1.8 Preview

I think yes, should be bootstrap at global level, and then each module should add his own bootstrap and settings at module level.

This is offering the greatest flexibility too....
2009/4/9 Matthew Weier O'Phinney <matthew@zend.com>:   

One idea we have tossed around is that modules would be responsible for loading their own configuration. The question is whether we should automate that, or whether it's the responsibility of the developer when they write their module bootstrap.  Thoughts?     
 I dont quite understand what you mean, however I will say that when first using the modules resource, I assumed that it would work like:  bootstrap <- Main Bootstrap  modules    default       bootstrap    m1      bootstrap  So you would have global resources, front controller etc in main bootstrap and then module specific in the others, I think Cristian made the same assumption.  Do you mean to have say separate config files for each module?


--  Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com

没有评论: