just had a look at the book it seems to contain the right code compared with the downloaded code, but doesint seem to work as no username is displayed in the username field.
$user = User::getById($_SESSION['userId']);
Got it!
No
'session_start();'
was included in the file which is needed
Last edited by danb100; August 3rd, 2009 at 07:58 AM..
|