Answer the question
In order to leave comments, you need to log in
Where to store constants?
In magento 2, the module has scripts for installing schemas and data. One of the tables has special identifiers that will be used later. There was a desire to use constants, but where to put it is not clear.
It is impossible in the model, because it will be strange to connect the model for tables that do not yet exist. Maybe you need to use helper. What do you say?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question