Re: [PHP] Can't printout class variable

2006-01-24 Thread Scott Gunn
You led me down the right path. I wasn't including the class definition file before adding the object to the session. Thanks. Sumeet wrote: Scott Gunn wrote: This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user);

Re: [PHP] Can't printout class variable

2006-01-23 Thread Sumeet
Scott Gunn wrote: This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user); echo "Welcome " . $user->firstName; The print_r command prints out: __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => User

[PHP] Can't printout class variable

2006-01-23 Thread Scott Gunn
This should be simple. What am I doing wrong? Here is the code that is failing: $user = $_SESSION['user']; print_r($user); echo "Welcome " . $user->firstName; The print_r command prints out: __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] => User [isLogg