4 * Class Video controlls video items handling: watching, commenting, rating,
8 * @author Călin-Andrei Burloiu
10 class Video extends CI_Controller {
12 public function index()
17 public function watch($id, $name = NULL)
19 $this->load->helper('url');
21 $this->load->view('html_begin');
22 $this->load->view('header');
24 $this->load->model('videos_model');
25 $data['video'] = $this->videos_model->getVideo($id)->row();
26 if ($name !== NULL && $data['video']->name != $name)
27 $data['video']->err = 'INVALID_NAME';
29 $this->load->view('video/watch_view', $data);
31 $this->load->view('footer');
32 $this->load->view('html_end');
36 /* End of file video.php */
37 /* Location: ./application/controllers/video.php */