Closed odilov-sh closed 3 years ago
It is just difficult to add all classes within project to globals? I want to use any class in twig files. Is there any way use classes?
No, there currently isn't.
It is just difficult to add all classes within project to globals? I want to use any class in twig files. Is there any way use classes?
I think this is a security feature, you need to whitelist what you want.
You could write one Helper class which does the allowed static calls for you.
What steps will reproduce the problem?
What's expected?
What do you get instead?
Additional info