On 13/04/2011 05:21, Matthew Weier O'Phinney wrote:

Again, we're still finishing up the proposal for the ZF2 MVC. While we
are retaining a goal of having a reasonable migration path from ZF1 to
ZF2, I still don't know what that will look like, nor how hard it will
be to do for end-users.

If you need to start working on a project now, I have these guidelines:

  * Write your domain logic now, test it well, and make sure it's solid
    and forms the core of your application. Have as little logic as
    possible in your controllers.

  * Use namespaces, and, more importantly, import aliases to make
    refactoring simpler.

     use Zend_Acl_Role as Role;

     // becomes, later:

     use Zend\Acl\Role;

    This simple practice will likely save you a ton of time. Do this for
    any ZF1 classes you use.

  * Rely on configuration when possible. Likely you'll be able to
    refactor the configuration to use with the proposed Dependency
    Injection Container, giving you some forwards compatibility.

Thanks for these tips. I think it's worth me going ahead and starting now. Hopefully when using ZF2 with this project in the future, I will not have to much breaking.

Cheers,

Simon

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to