S
S
Space2015-05-22 15:13:00
Yii
Space, 2015-05-22 15:13:00

How to transfer a module?

1. I create a module in the project. The new files appear in the modules parent directory and in web/app. Those. if i copy these folders to another yii project will they work the same? I know about the module declaration in web.php.
2. When should you create modules, and when should you not put them in modules? And in general, are there any "troubles" when working with modules?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2015-05-22
@webinar

1. Yes, there will be
2. A module is a self-sufficient unit that is convenient to transfer from project to project, but there are a number of difficulties with them, connected precisely with the lack of links with the application.
Therefore, modules are needed only when they are completely separated from the rest of the logic. Their functionality is used, but they do not touch other components, models, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question