Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Joomla 1.5在Joomla之外访问模板_Php_Joomla - Fatal编程技术网

Php Joomla 1.5在Joomla之外访问模板

Php Joomla 1.5在Joomla之外访问模板,php,joomla,Php,Joomla,我正在尝试访问并构建Joomla之外的页面。我最关心的是菜单。 它开始加载,但我在调用mosLoadModules时遇到了多个错误。有没有办法加载这些函数或让页面访问这些函数 $directory = '/var/www'; // path to Joomla installation define( '_JEXEC', 1 ); define( 'JPATH_BASE', $directory); define( 'DS', '/' ); require_once ( JPATH_BASE

我正在尝试访问并构建Joomla之外的页面。我最关心的是菜单。 它开始加载,但我在调用
mosLoadModules
时遇到了多个错误。有没有办法加载这些函数或让页面访问这些函数

$directory = '/var/www'; // path to Joomla installation

define( '_JEXEC', 1 );
define( 'JPATH_BASE', $directory);
define( 'DS', '/' );

require_once ( JPATH_BASE .DS . 'configuration.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );

require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' );
$mainframe =& JFactory::getApplication('site');

$mosConfig_live_site = 'mysitesdomain.com';

你想做什么(哪个目录在Joomla where之外)以及你到底在哪里得到了什么错误?请你把你想达到的目标具体一点。检查您的错误日志,因为这会给您一个提示,告诉您可能会在旁注中出错。删除
DS
常量并使用
DIRECTORY\u SEPARATOR
实际上对于Joomla 1.5使用
DS
实际上是正确的做法,尽管它应该被定义为
define('DS',DIRECTORY\u SEPARATOR)它位于正常webroot之外的安全目录中。我不想通过iframe加载这个。