Hi I have a class following:
class allConstants {
//PREDEFINED ALL FIXED GROUPS USING IN ACCOUNT MODULE
const GROUP_BANK_ACCOUNT = 'Bank Accounts';
const GROUP_CURRENT_ASSETS = 'Current Assets';
const GROUP_LOAN_LIBILITIES = 'Loan (Liabilities)';
const GROUP_BANK_OD_ACCOUNT = 'Bank OD a/c';
const GROUP_CASH_IN_HAND
}
So I want to access these constants into twig file. So when I am using like following in twig : constant('\Edu\AccountBundle\Constants\allConstants::GROUP_BANK_ACCOUNT');
its showing an refrence erro that "constant" not define. Please guide how to make it work. I am using symfony 2.3.7 Thanks in advance