Php Joomla 1.5在Joomla之外访问模板
我正在尝试访问并构建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
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加载这个。