Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Scope Resolution Operator

Is scope resolution operator (::) available in volt.

If not, what should I do to take constant from another file.


You can use "constant":

{% set name = constant("Some\Namespace\MyClass::NAME") %}