Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2155

General Questions/New to Joomla! 5.x • Re: Can't get userId to pass to slim 4 code

$
0
0
Instead of

Code:

define ('JPATH_BASE', $_SERVER[ 'DOCUMENT_ROOT' ]);
use the following, but adjust the directory traversal /.. unless the script is in a subfolder of the main Joomla folder:

Code:

define('JPATH_BASE', realpath(dirname(__FILE__) . '/..'));

Statistics: Posted by toivo — Wed Apr 17, 2024 2:06 am



Viewing all articles
Browse latest Browse all 2155

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>