4 * Class Catalog controlls video hierarchy and searching
7 * @author Călin-Andrei Burloiu
9 class Catalog extends CI_Controller {
11 public function index()
13 // Retrieve videos summary.
14 $this->load->model('videos_model');
15 $data['videos'] = $this->videos_model->get_videos_summary();
17 $params = array( 'title' => $this->config->item('site_name'),
18 //'stylesheets' => array(),
19 //'javascripts' => array(),
20 //'metas' => array('description'=>'','keywords'=>'')
22 $this->load->library('html_head_params', $params);
23 $this->load->view('html_begin', $this->html_head_params);
24 $this->load->view('header');
26 $this->load->view('catalog/index_view', $data);
28 $this->load->view('footer');
29 $this->load->view('html_end');
32 public function test()
34 $this->load->helper('url');
36 $format = 'Calin Andrei ';
37 $pos = strpos($format, ' ');
39 $format = substr($format, 0, $pos);
44 /* End of file catalog.php */
45 /* Location: ./application/controllers/catalog.php */