To get the grav version outside grav with twig like: PHP Version {{ constant('PHP_VERSION') }} and Twig Version {{ constant('Twig_Environment::VERSION') }}.
Archive
{{ constant('GRAV_VERSION') }}
Thanks, this is the internal define. I can´t get this outside of grav, but i have the follow solution:
$parent_dir = dirname(DIR);
include($parent_dir . '/grav/system/defines.php');
This code at my external programm gets the defines of grav and i can use the aktual GRAV_VERSION automaticly for showing at my frontend.
Ok cool, sorry i misunderstood your question. Glad you got it sorted.
Log in to reply.
Suggested topics
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1352 | 9 years ago | ||
| 2 | 935 | 9 years ago | ||
| 2 | 4064 | 9 years ago | ||
| 1 | 2950 | 9 years ago | ||
| 3 | 1119 | 9 years ago |