umpirsky wrote:
> 
> How hard it will be to migrate from zf1 to zf2, and when do you expect zf2
> release?
> 
Although I do not know the level of BC ZF2 will have with ZF1; I would
expect the migration effort to be minimal if you take care to do the
following things in your current ZF1 applications:

1 - Move domain logic into domain/entity objects
2 - Move application logic (above and beyond domain logic) into a service
layer
3 - Use dependency injection where possible (helps testing as well)
4 - Fully utilize PHP5.3 namespaces - AFAIK, ZF1 currently will not respect
namespaced controllers nor view helpers -- everything else is OK to be
namespaced (this includes your application Bootstrap, action helpers,
controller plug-ins, bootstrap resource plug-ins, and of course, your own
library code)
5 - Use the ZF autoloader as it adheres to the PSR-0 standard. Doctrine2 can
be loaded with this autoloader as well (you don't need the Doctrine2
autoloader if you are using the ZF autoloader).
6 - Configure everything. In other words, if you have a 600 line Bootstrap
class; you need to re-factor. If there isn't an intrinsic Bootstrap resource
for what you are doing, write one.
7 - This may seem obvious, but I've seen this one missed. Please use
Zend_Config if possible.
8 - Don't introduce ANY global variables and keep global constants to a
minimum. Just enough to get the application bootstrapped, then don't use
them anymore. Our policy is to use global constants only up to the
application.ini point, then use only configuration variables past that
point.
9 - Document your entire process -- text files (my favorite), word
documents, spreadsheets, whatever. Just document it.

With the above items in mind, migration should be fairly painless.

If I've misspoken on any of the above points, I'm sure someone will be happy
to correct me and I'd be happy to know about it.

-----
--
Wil Moore III

Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF-2-0-when-and-what-tp3031964p3043267.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to