Tom Tom - 1 year ago 114
PHP Question

Finding out the installed version of twig

Is there a way to find out my installed version of Twig?

Something like

<p>The current version is {% twig.version %}</p>

(although I know that's not even close to being right).

Answer Source

Try it:

<p>The current version is {{ constant('Twig_Environment::VERSION') }}</p> 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download