Skip to content

Instantly share code, notes, and snippets.

@fholgado
Created April 24, 2010 19:08
Show Gist options
  • Save fholgado/377862 to your computer and use it in GitHub Desktop.
Save fholgado/377862 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();
$query = $this->Status_model->get_organization_owners();
$results = $query->result_array();
foreach ($results as $result) {
$number_of_databases = $this->Status_model->get_from_organization_by_id($result['id']);
$id = $result['id'];
$array[$id] = $number_of_databases;
}
var_dump($array);
$data['quantity'] = $array;
$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