+ public function category($category_id)
+ {
+ // Retrieve videos summary.
+ $this->load->model('videos_model');
+ $data['videos'] = $this->videos_model->get_videos_summary($category_id);
+ $categories = $this->config->item('categories');
+ $data['category'] = $categories[$category_id];
+ $data['category_id'] = $category_id;
+
+ $params = array( 'title' => $this->config->item('site_name'),
+ 'stylesheets' => array('catalog.css'),
+ //'javascripts' => array(),
+ //'metas' => array('description'=>'','keywords'=>'')
+ );
+ $this->load->library('html_head_params', $params);
+ $this->load->view('html_begin', $this->html_head_params);
+ $this->load->view('header');
+
+ $this->load->view('catalog/category_view', $data);
+
+ $this->load->view('footer');
+ $this->load->view('html_end');
+ }
+