M
M
Michael2016-06-06 22:58:42
Magento
Michael, 2016-06-06 22:58:42

How to work with models in a module?

I am developing a module for Magento 2: I need to give a result based on data from different database tables. I made models, but I don’t understand how to connect them (not join).
UPD:
In fact, business logic can be written directly in /Controller, because in this case they are not for display. Although you can also think about /Helper.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Олег Батищев, 2017-11-27
@springimport

В модели пишете методы получения связанных данных, в ресурсе прописываете как их получать, в блоках и view как отображать )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question