Answer the question
In order to leave comments, you need to log in
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
В модели пишете методы получения связанных данных, в ресурсе прописываете как их получать, в блоках и view как отображать )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question