PHP version : 7.4
hello
i'm creating a new J4 site from J3 existing one.
I have a J3 code which is running perfectly.
It's bugging in J4.
After some search I have found that the following code is the bug :
Code: Select all
<?php
$uri = & JFactory::getURI();
$Monurl = parse_url(JURI::root());
Code: Select all
<?php
$uri = & JFactory::getURI();
$Monurl = parse_url(Joomla\CMS\Uri\Uri::root());
Code: Select all
Call to undefined method Joomla\CMS\Factory::getURI()
Thank you for your recommandations
Best regards
Michel Rottenberg