When should I make the code in a separate module, and when — in a separate controller?

How to determine what part of the application is to execute in a separate module?
How to determine what part of the application need to make a separate controller?

Please give clear examples for each of the cases.
September 19th 19 at 00:33
1 answer
September 19th 19 at 00:35
Solution
How to determine what part of the application is to execute in a separate module?

If this part of the application, you can reusing and it does not depend on anything. Modules are necessary only for the issuance of a code that may be reused.

How to determine what part of the application need to make a separate controller?

No way. Read about thin controllers and fat models, or at worst solstice service layer. Reus controllers it is not noble.

www.ustream.tv/recorded/22783515 - I recommend

Find more questions by tags MVCZend Framework