Skip to content

Instantly share code, notes, and snippets.

@paulchubatyy
Created November 20, 2010 18:59
Show Gist options
  • Save paulchubatyy/708050 to your computer and use it in GitHub Desktop.
Save paulchubatyy/708050 to your computer and use it in GitHub Desktop.
<?php
// ...
// Example A - Load user model directly in traditional style
$user_a = new User('[email protected]')
->load($db);
// Example B - Load user model using HMVC style
$user_b = Request::factory('users/[email protected]')
->method('GET')
->header('Accept', 'application/json')
->execute($json_decoder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment