-
-
Save erkattak/742629 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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