{
$this->load->helper('url');
+ // **
+ // ** LOADING MODEL
+ // **
// Retrieve video information.
$this->load->model('videos_model');
$data['video'] = $this->videos_model->get_video($id, $name);
//'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
// $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');
siteUrl = '<?php echo site_url() ?>';
</script>
+<div id="watch-main">
<?php // Invalid name in URL ?>
<?php if (isset($video['err'])):
if ($video['err'] == 'INVALID_NAME'):
<?php endif // if (isset($video['err'])): ?>
+</div>
<?php // Javascript bindings when document is ready ?>
<script type="text/javascript">