我正在尝试访问并构建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';