C
C
Cat Anton2015-03-01 17:33:11
Zend Framework
Cat Anton, 2015-03-01 17:33:11

When should code be moved to a separate module, and when should it be moved to a separate controller?

How to determine what part of the application should be made into a separate module?
How to determine that a part of the application needs to be moved to a separate controller?
Please provide clear examples for each case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-03-02
@27cm

How to determine what part of the application should be made into a separate module?

If this part of the application can be reused and it does not depend on anything. Modules are needed solely for the removal of code that can be reused.
No way. Read about thin controllers and fat models or, at worst, thicken the service layer. Reyuzing controllers is not a noble thing at all.
www.ustream.tv/recorded/22783515 - I recommend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question