Page 1 of 1

JFactory

Posted: Wed Oct 17, 2012 5:01 pm
by kermit101
j'ai un problème avec j factory j'ai ce message d'erreur : Fatal error: Call to undefined method JFactory::getXMLParser() in /home/infor473/public_html/plugins/system/nnframework/helpers/parameters.php on line 110

voici le code a cette ligne:

function _loadXML($path)
{
$xml = array();
if ($path) {
$xml =& JFactory::getXMLParser( 'simple' );
if ($xmlparser->loadFile($path)) {
$xml = $this->_getParamValues($xmlparser);
}
}

return $xml;

voyez vous une erreur dans la programation ?

mon site web www.informatique-kermit.ca

thank

Re: JFactory

Posted: Mon Oct 22, 2012 3:52 pm
by H13
Hi, not sure which Joomla! Platform version you are using, but this function was deprecated in platform version 12.1
http://www.phoca.cz/joomla/api/class-JFactory.html

it does not work anymore.

Jan