On 12/8/10 3:23 PM, Jeroen Keppens wrote:
> I think Bootstrap is the exception... I never prefix it either.
As noted, it is not the only exception, controllers are another
exception to the rule.
To understand why, you have to consider the evolution of ZF1. First
came the controller, then came the Application layer, then came the
tooling. As we had a chance to work with all these technologies
together over time, some best practices emerged.. those when into ZF1
UNLESS they created a backwards-incompatibility. In that case, those
best practices will be represented in ZF2.
Since Zend_Tool is generally used to scaffold new projects, Zend_Tool
can create the proper prefixes in various places why adding the
appropriate options to make it possible in the application.ini file.
Honestly, its not the best/most ideal solution, but with backwards
compatibility (and performance concerns) in play, its what we have. ZF2
promises to add a more cohesive and more well thought out Application +
MVC stack.
Of course more on that in the coming months.
>> I don't know why but Zend_Tool creates "Bootstrap.php" having class
>> "Bootstrap" not "Application_Bootstrap".
>> Moreover renaming it to "Application_Bootstrap" raises exception.
>> Same thing for controllers.
>>
-ralph
没有评论:
发表评论