Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created February 23, 2011 21:16
Show Gist options
  • Select an option

  • Save jmertic/841201 to your computer and use it in GitHub Desktop.

Select an option

Save jmertic/841201 to your computer and use it in GitHub Desktop.
<?php
$account = new Account();
$account->retrieve($_REQUEST['record']);
$contacts = $account->get_linked_beans('contacts','Contact');
foreach ( $contacts as $contact ) {
echo "{$contact->name}\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment