i want to retrieve the user object in a new php file in the root of my joomla installation.
I get the following error:
Error displaying the error page: Application Instantiation Error: Application Instantiation Error
What am i doing wrong here?
Here is my code so far:
<?php
define('_JREQUEST_NO_CLEAN', 1);
define('_JEXEC', 1);
define('JPATH_BASE', dirname(__FILE__));
define('DS', DIRECTORY_SEPARATOR);
require_once JPATH_BASE.DS.'includes'.DS.'defines.php';
require_once JPATH_BASE.DS.'includes'.DS.'framework.php';
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$user=JsnHelper::getUser();
?>