Hello,
I have an external PHP page, I'm calling this url with ajax inside a template of a controller. But when I get the content of this page, I have url's and the URL are not generate by JoomSEF...
For example, I made a little script :
<?php
define( '_JEXEC', 1 );
define('JPATH_BASE', '../../../' );
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php');
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php');
$app = JFactory::getApplication('site');
$app->initialise();
$link = 'index.php?option=com_mycomponent&id=1234';
$link = JRoute::_($link);
The url with com_mycomponent and id 1234 is not generated by JoomSEF.
Any idea ?