Salut,
comme le titre l'indique,
Listes - non exhaustives - des nouveaux "namepaces" dans Joomla 4
[4.0] Namespace by brianteeman · Pull Request #24931
https://github.com/joomla/joomla-cms/pull/24931/files
[4.0] Namespace by brianteeman · Pull Request #25137
https://github.com/joomla/joomla-cms/pull/25137/files
Exemples:
devient :
JObject devient CMSObject
\JForm devient Form
\JFormHelper devient FormHelper
etc...
A associer avec cette doc :
Potential backward compatibility issues in Joomla 4 - Joomla! Documentation
https://docs.joomla.org/Potential_ba...es_in_Joomla_4
Hope it helps.
comme le titre l'indique,
Listes - non exhaustives - des nouveaux "namepaces" dans Joomla 4
[4.0] Namespace by brianteeman · Pull Request #24931
https://github.com/joomla/joomla-cms/pull/24931/files
[4.0] Namespace by brianteeman · Pull Request #25137
https://github.com/joomla/joomla-cms/pull/25137/files
Exemples:
Code PHP:
$db = JFactory::getDbo();
Code PHP:
$db = Factory::getDbo();
JObject devient CMSObject
\JForm devient Form
\JFormHelper devient FormHelper
etc...
A associer avec cette doc :
Potential backward compatibility issues in Joomla 4 - Joomla! Documentation
https://docs.joomla.org/Potential_ba...es_in_Joomla_4
Hope it helps.
Commentaire