Home »
Joomla »
Инициализация Joomla 2.5 в отдельном файле
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
$path = dirname(__FILE__);
$path = empty($path) ? DS : $path;
define('JPATH_BASE', $path);
header('Content-Type: text/html; charset=utf-8');
require_once(JPATH_BASE.DS.'includes'.DS.'defines.php');
require_once(JPATH_BASE.DS.'includes'.DS.'framework.php');
JFactory::getApplication('site')->initialise();
Свежие комментарии