How to get a logged in user ID from FEU in external php file
Posted: Thu Mar 24, 2016 4:07 pm
I am using CMSms 2.1.1 with the FEU module installed. I have a php file in my root directory in which I want to read the User ID of the logged in user. I tried this:
...but that didn't work. Could anybody help me with this?
Thanks in advance.
Code: Select all
$feusers = cms_utils::get_module('FrontEndUsers');
$user_id = $feusers->LoggedInId();
...but that didn't work. Could anybody help me with this?
Thanks in advance.