How can I find the current Concrete5 version in code?

Permalink 1 user found helpful
How can I find the current Concrete5 version from php code?

View Replies:
uzer replied on at Permalink Reply
I see the variable $APP_VERSION defined in version.php. Is this globally accessible I assume?
uzer replied on at Permalink Reply
When trying to echo $APP_VERSION from a block view.php (using this example block:http://www.concrete5.org/documentation/developers/blocks/understand... ) it showed nothing.

Grepping the Concrete5 folders I found references to using the Config class and SITE_APP_VERSION. So by adding the below line to my view.php I can now see my concrete5 version:

echo Config::get('SITE_APP_VERSION');
codecube replied on at Permalink Reply
codecube
thank you, i was also wanting a similar solution!