I found a solution here . You must create a storage class in the model. In this class, you can create as many constants as you want.
<?php namespace Application\Model; class Application { const EMAIL = ' email@gmail.com '; }
Now you can get it everywhere:
NameOfModule\Model\NameOfModel::NAMEOFCONSTANT
Thus, you can, for example, print a constant in this form:
<?php echo Application\Model\Application::EMAIL; ?>
Black
source share