Skip to content

Instantly share code, notes, and snippets.

@erkattak
Forked from anonymous/gist:742580
Created December 15, 2010 21:23
Show Gist options
  • Save erkattak/742629 to your computer and use it in GitHub Desktop.
Save erkattak/742629 to your computer and use it in GitHub Desktop.
<?php
// controller
function wutangclan() {
$this->load->model('odb');
$data['killerbees'] = $this->odb->getThatPaper();
$data['main_content'] = 'report/dashboard'; // main body view, can be whatever
$this->load->view('includes/template', $data);
?>
============
<?php
// main template view
$this->load->view('includes/header'); // common header
$this->load->view($main_content); // defined in controller
$this->load->view('includes/footer'); // common footer
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment