M
M
Michael2016-12-01 17:36:43
Magento
Michael, 2016-12-01 17:36:43

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

1 answer(s)
I
imdeveloper, 2016-12-04
@springimport

Helpers

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question