Evening
I have embedded some AJAX functions in the Joomla module. Now that I activate SEF, AJAX no longer works. This is because the path to the external php file has been changed. To fix this, I need to add a base url, now the question arises: how to get the base url in the following:
remote: "modules/mod_module/libs/elements/db_checker.php"
so it should be something like
remote: "<?php echo $baseurl; ?>modules/mod_module/libs/elements/db_checker.php"
therefore, the full link should become
remote: "http://www.mysite.com/modules/mod_module/libs/elements/db_checker.php"
I can not get the URI to work, please help me with this
Thanks in advance
UPDATE
fixed it myself :) this fix:
<?php echo JURI::root().'modules/mod_module/libs/elements/db_checker.php'; ?>
source share