Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Generate URL - External php page - AJAX
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Generate URL - External php page - AJAX

Generate URL - External php page - AJAX 9 years, 6 months ago #46498

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 ?
  • Page:
  • 1
Přihlášení uživatele Prázdný