Very good conversation, helped me a lot, thx! I always saw the controllers as not a part of the whole DI thing. But it makes sense :)
-----Ursprüngliche Nachricht----- Von: Ralf Eggert [mailto:[email protected]] Gesendet: Dienstag, 18. September 2012 20:32 An: [email protected] Betreff: Re: [fw-general] [ZF2] Injecting objects to a controller, or getting objects from the service locator? Hi Matthew and Jurian, > Well, one question I have is: is it really 4 forms? or 1 form with 4 > views? There's a difference. :) Well, after really thinking about it, currently there is only three forms. addAction and updateAction use the same saveForm with different validation groups. The deleteAction form is not really needed, so I can refactor that. Just the selectForm works different than the saveForm, since the email field takes incomplete emails in the selectForm for searching. > Exactly -- and I'd do this, as this more semantically groups the > actions. > >> But does that really make sense? > > Yes -- at least in my opinion. :) Ok, sounds reasonable. Regards, Ralf -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected] -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
