Skip to content

Instantly share code, notes, and snippets.

@HinchyMinecraft
Created October 3, 2010 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HinchyMinecraft/609024 to your computer and use it in GitHub Desktop.
Save HinchyMinecraft/609024 to your computer and use it in GitHub Desktop.
<?php
// ACME API
// bbPress database model
$this->load->library('acmebbuser');
class BBpressusermodel extends Model {
function Usermodel() {
parent::Model();
}
function fetchUserData() {
$query = $this->db->get('bb_users');
$query = $query->result_array();
foreach ($query as $field) {
$fields[$field['id']] = $field;
}
$user = $this->acmebbuser->getInstance();
// set $user's public variables to the information from $fields
// how I do?
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment