I have the class below:
class Company_Module_Model_Somemodel extends Mage_Core_Model_Abstract
{
const SOME_CONST = 'constant_text';
}
What is the proper and correct way to call the constant in another class? Like this:
$class = Mage::getModel('company_model/somemodel');
echo $class::SOME_CONST;
Or like this:
echo Company_Module_Model_Somemodel::SOME_CONST;
Can you explain why is the one better than other? Thanks!