Skip to content

Instantly share code, notes, and snippets.

@tedkulp
Created December 22, 2008 14:00
Show Gist options
  • Save tedkulp/38992 to your computer and use it in GitHub Desktop.
Save tedkulp/38992 to your computer and use it in GitHub Desktop.
<?php
include 'lib/silk/silk.api.php';
SilkDatabase::connect('mysql://root:@localhost/cms_innodb', true, true, 'cms_');
$users = orm('user')->find_all(array('order' => "id ASC"));
var_dump($users[0]->full_name());
var_dump($users[0]->groups[0]->name);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment