Skip to content

Instantly share code, notes, and snippets.

@fholgado
Created April 24, 2010 19:01
Show Gist options
  • Save fholgado/377851 to your computer and use it in GitHub Desktop.
Save fholgado/377851 to your computer and use it in GitHub Desktop.
<?php
class Status extends MY_Controller {
function Status() {
parent::MY_Controller();
$this->load->model('Status_model');
}
function index() {
$this->authentication->require_authentication();
$data['owners'] = $this->Status_model->get_organization_owners();
foreach ($owners->result() as $row) {
$data[id] = get_database_quantity($row->id);
}
$data['user_data'] = $this->user_data;
$this->load->view('header', $data);
$this->load->view('status', $data);
$this->load->view('footer');
}
function get_database_quantity($id) {
$db_quantity = $this->Database_model->get_from_organization_by_id($id);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment