Examples of using modules in the Zend Framework

Besides the obvious examples of using "admin" and "blog" for module structure in the Zend Framework, are there any reasons or recommendations for using modules? I feel attractive for using modules, but I'm not sure how to split my web application into modules.

Can you offer some examples of using modules?

+3
source share
1 answer

Modules are good if you want to reuse them in multiple applications or when the part of the application is large enough to guarantee separation into your piece. Instead of having a bunch of unconnected controllers in one directory, the module allows you to split MVC into related pieces.

We constantly use modules; Our customers often choose between the available modules for packaging the application. We also introduced module dependencies so that the modules can rely on each other.

As a rule, when our applications have a high-level subfolder, if they have not only a couple of pages, these are modules. For example, About will only be the controller and presentation in the application, but the forum can be its own module.

+3
source

Source: https://habr.com/ru/post/1754286/


All Articles