Jump to content
  • 0

Get Userid From Within A Module That Extends Module


Question

Posted

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?

2 answers to this question

Recommended Posts

  • 0
Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...