Syleron Posted November 4, 2014 Report Share Posted November 4, 2014 I'm trying to grab the user's email using Contacts::get() but I'm not sure how to get the user's client id so I can pass it through. Any idea? Thanks, Andrew Edit: Found that you can use $_SESSION['blesta_client_id'] but is there a better way of doing this? Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted November 4, 2014 Report Share Posted November 4, 2014 this is $client_id = $this->Session->read("blesta_client_id"); Michael 1 Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted November 4, 2014 Report Share Posted November 4, 2014 The client ID is available to some of the module methods as apart of input or service data. You should use that rather than the session, as there may not be any session user data available when the module is called automatically or by an admin. Michael 1 Quote Link to comment Share on other sites More sharing options...
Question
Syleron
I'm trying to grab the user's email using Contacts::get() but I'm not sure how to get the user's client id so I can pass it through.
Any idea?
Thanks,
Andrew
Edit:
Found that you can use $_SESSION['blesta_client_id'] but is there a better way of doing this?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.