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?
I see the variable $APP_VERSION defined in version.php. Is this globally accessible I assume?
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:
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');
thank you, i was also wanting a similar solution!