I'm making a simple Joomla plugin that loads a CSS file, but I want to load a different file for Joomla 2.5 and 3.2, using a PHP if-else statement. Is it possible to determine the Joomla version of the site using PHP?
You can use the named constant JVERSION or if you need more functions use the JVersion object like:
$j = new JVersion()
echo $j->getLongVersion();
echo $j->$RELEASE;
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more