Error when trying to call a constant to a view: the method is not defined