-- Ralf Eggert <[email protected]> wrote
(on Tuesday, 18 September 2012, 12:01 PM +0200):
> the only problem I have with these solutions is about injecting form
> objects to a controller or service. I have about five forms for a
> controller and don't need all of them on every page. So injecting them
> in a factory is no solution.

Then you need to break your controller into multiple controllers, as
it's managing too much.

The rule of thumb I have is: more than 5-7 actions in a controller:
refactor. More than 1-2 forms: refactor. Otherwise, the workflow of the
controller becomes too difficult to follow easily.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

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


Reply via email to