Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. class Main extends MY_Controller {
  4.     function __construct(){
  5.         parent::__construct();
  6.         $this->load->helper('url');
  7.     }
  8.  
  9.     public function index(){
  10.  
  11.         $this->load->model('Main_model');
  12.         $data['sidebar'] = $this->Main_model->sidebarModel();
  13.  
  14.  
  15.         $this->load->view('header.php');
  16.         $this->load->view('main/index');
  17.         $this->load->view('sidebar.php', $data);
  18.         $this->load->view('footer.php');
  19.  
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement