When we pass back-end models into front-end models, sometimes there are constants that I do not want to redefine.
class MyModel {
const ADMIN = 1
}
Usually in PHP I would access the constant this way MyModel::ADMIN
. What is a recommended solution for bringing class constants to the front end?
Aucun commentaire:
Enregistrer un commentaire