I am trying to get the userID of the logged in user within that PHP file so that I can run some SQL queries based upon that user
I have the following code but it does not work. I think it is an issue importing the files?
Code: Select all
include_once "/includes/defines.php"; include_once "/includes/framework.php"; include_once "/libraries/joomla/database/factory.php"; include_once "/libraries/classmap.php"; $user =& JFactory::getUser(); $user_id = $user->id;