Mysql
 sql >> Database >  >> RDS >> Mysql

Come estendere Joomla! al mio file PHP personalizzato

metti queste righe sopra il tuo file php

define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__).'/../../../../' );   // should point to joomla root
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();

ora puoi usare tutte le classi di Joomla qui