I have a list of constants (I use them as an enumeration), some of them define operators, and some only global variables.
Where can I put them in an MVC structure, so I can use them both for my model and for my controller, which should reference it?
I would prefer not to embed it in config / constants.php, as they should not be called except for this model and the controllers that use it.
Edit 1: Clarification
To be more specific, I have my model message_model, and I have a bunch of constants that I need that are stored in message_model_constants.php. Where should I put message_model_constants.phpand there is a way to automatically turn it on with a controller that loads message_modelwhen message_modelit is not (and I do not want it to be) automatically loaded.
Edit 2:
I really do not want the constants to be loaded automatically, unless I use the model
source
share