Just trying to code up a form that returns a users details from the database. Keep getting the following error when trying to run the linked code:
Trying to get property of non-object in /Applications/MAMP/localhost/silverstripe/mysite/code/UserInfoPage.php on line 33
Code
http://pastebin.com/m249278a
Pointers greatly appreciated!