Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 4th, 2011  |  syntax: PHP  |  size: 0.39 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.  
  4.         //Getting all the Reviews and put them on the includes/header.php
  5.         function sidebar()
  6.         {
  7.                 //Get the instance of the framework
  8.                 $CI=& get_instance();
  9.                
  10.                
  11.                 //Getting data from sidebarModel
  12.                 $CI->load->model('sidebar_model');
  13.                 $data['sidebarRow'] = $CI->sidebar_model->getSidebarReviews();
  14.                
  15.                 //$data['main_content'] = 'frontpage_view';
  16.                 $this->load->view('template', $data);
  17.         }
clone this paste RAW Paste Data