Skip to content

Instantly share code, notes, and snippets.

@fholgado
Created April 24, 2010 18:55
Show Gist options
  • Save fholgado/377847 to your computer and use it in GitHub Desktop.
Save fholgado/377847 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 get_database_quantity($id) {
$db_quantity = $this->Database_model->get_from_organization_by_id($id);
}
}
function index() {
$this->authentication->require_authentication();
$data['owners'] = $this->Status_model->get_organization_owners();
foreach ($owners->result() as $row) {
for i=0, i < (size of owner), i++ {
$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');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment