Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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
You can’t perform that action at this time.