• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the customer id if session is not set

#3
(07-28-2016, 04:19 AM)InsiteFX Wrote: You can add this to your class:

PHP Code:
// Add this as a class variable
protected static $customerId 0;

// Then to SET it do this
self::$customerId $customer_id;

// Then to GET it do this
$customer_id self::$customerId

Do I put the bottom 2 in the __construct() area?
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply


Messages In This Thread
RE: Getting the customer id if session is not set - by wolfgang1983 - 07-28-2016, 04:27 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.