I have a site, which is being built with Joomla 2.5, and this site has to be integrated with another application built in some other Framework(which is not of our concern).
the Joomla site/frontend is accessible by the following URL http://wwww.server.com/
The application is kept under http://wwww.server.com/app/
I am trying to re-create the Menu defined in Joomla Admin, into the applications sidebar, using the following code snippet
define( '_JEXEC', 1 );
define('JPATH_BASE', realpath(dirname(__FILE__)."/../"));
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');
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModules('left');
echo JModuleHelper::renderModule($module[0]);
This generates the Menu perfectly on the non-Joomla page, but the URL generated for the HREF attribute contains /app/
included in it, which should not have been there