public function index()
{
- $this->load->view('html_begin');
+ // Retrieve videos summary.
+ $this->load->model('videos_model');
+ $data['videos'] = $this->videos_model->get_videos_summary();
+
+ $params = array( 'title' => $this->config->item('site_name'),
+ //'stylesheets' => array(),
+ //'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->model('videos_model');
- $data['query'] = $this->videos_model->getVideosSummary();
$this->load->view('catalog/index_view', $data);
-
$this->load->view('footer');
$this->load->view('html_end');
}
+
+ public function test()
+ {
+ $this->load->helper('url');
+
+ $format = 'Calin Andrei ';
+ $pos = strpos($format, ' ');
+ if($pos !== FALSE)
+ $format = substr($format, 0, $pos);
+ echo $format;
+ }
}
/* End of file catalog.php */