X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fvideo.php;h=019fa2c0437e9fbe2ce58b259d53809eb4507dac;hb=09add6ca11db3ca299f73fbc92f4f2d0aed1daa8;hp=2818ba3b85a545769d8915c74107d3ec696108a1;hpb=9e326b335014eac0c6c6476402654b19c57a396f;p=living-lab-site.git diff --git a/application/controllers/video.php b/application/controllers/video.php index 2818ba3..019fa2c 100644 --- a/application/controllers/video.php +++ b/application/controllers/video.php @@ -1,7 +1,7 @@ load->helper('url'); + // ** + // ** LOADING MODEL + // ** // Retrieve video information. $this->load->model('videos_model'); $data['video'] = $this->videos_model->get_video($id, $name); @@ -42,20 +45,15 @@ class Video extends CI_Controller { $params = array( 'title' => $data['video']['title'] . ' -- ' . $this->config->item('site_name'), 'css' => array( - 'jquery-ui-1.8.15.custom.css', 'jquery.ui.nsvideo.css', 'video.css' ), 'js' => array( - 'jquery-1.6.2.min.js', - 'jquery-ui-1.8.15.custom.min.js', 'jquery.ui.nsvideo.js' ), //'metas' => array('description'=>'','keywords'=>'') ); $this->load->library('html_head_params', $params); - $this->load->view('html_begin', $this->html_head_params); - $this->load->view('header'); // Preloading video plugin. // TODO plugin auto: type and format @@ -67,6 +65,13 @@ class Video extends CI_Controller { // $data['plugin_content'] = $this->_plugin('ns-html5', // $data['video']['url'][0], TRUE); + // ** + // ** LOADING VIEWS + // ** + $this->load->view('html_begin', $this->html_head_params); + $this->load->view('header'); + + //$main_params['content'] = $this->load->view('video/watch_view', $data, TRUE); $this->load->view('video/watch_view', $data); $this->load->view('footer');