I'm putting a website on the internet and I have a problem.
When a user is connected in the xataface application, He can click on a button to make an action.
In this action, I want to put the user's id in a variable.
So this the code in a class (class actions_paypal) :
- Code: Select all
function handle($params) {
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
$id = $user->val('id');
I've got this error :
Fatal error: Call to a member function val() on a non-object in /home/lepemcx/public_html/xatagestion/actions/paypal.php on line 12
The line 12 is the line of this action : $id = $user->val('id');
Wether this code works well in local, it doesn't on the internet.
Does anyone knows why and can help me ?
Thank you for your answers.