Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Getting all the Reviews and put them on the includes/header.php
- function sidebar()
- {
- //Get the instance of the framework
- $CI=& get_instance();
- //Getting data from sidebarModel
- $CI->load->model('sidebar_model');
- $data['sidebarData'] = $CI->sidebar_model->getSidebarReviews();
- //Return data to the template
- $data['main_content'] = 'include/header';
- $CI->load->view('template', $data);
- }
Add Comment
Please, Sign In to add comment