Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 291 Bytes
//Initialise Morph_Storage passing in the appropriate database
$mongo = new Mongo();
//Fetches and instance of User by its id
$user = new User();
$user = $user->loadById(1234);
//do something with it's properties
echo $user->firstName;
Jump to Line
Something went wrong with that request. Please try again.