X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fcatalog.php;h=23a2f177c9645689b3a36195fe4adfd8ffa319d0;hb=ad7daf2de4288cff974e97ec9290533ba732df3b;hp=fec8d642854418842fbd53dee49b35928d9f0f98;hpb=74d7b5848a42e30e669cc05db22e83396b3cc107;p=living-lab-site.git diff --git a/application/controllers/catalog.php b/application/controllers/catalog.php index fec8d64..23a2f17 100644 --- a/application/controllers/catalog.php +++ b/application/controllers/catalog.php @@ -1,7 +1,7 @@ load->model('videos_model'); foreach ($this->config->item('categories') as $id => $name) @@ -39,13 +42,20 @@ class Catalog extends CI_Controller { } $params = array( 'title' => $this->config->item('site_name'), - 'css' => array('catalog.css'), + 'css' => array( + 'catalog.css', + 'jquery-ui.css' + ), //'js' => array(), //'metas' => array('description'=>'','keywords'=>'') ); $this->load->library('html_head_params', $params); + + // ** + // ** LOADING VIEWS + // ** $this->load->view('html_begin', $this->html_head_params); - $this->load->view('header'); + $this->load->view('header', array('selected_menu' => 'home')); $this->load->view('catalog/index_view', $data); @@ -55,15 +65,14 @@ class Catalog extends CI_Controller { public function test($page = 0) { - $this->load->helper('url'); - $str = '800x600'; - - echo substr($str, strpos($str, 'x') + 1); } public function category($category_id, $offset = 0) { + // ** + // ** LOADING MODEL + // ** // Retrieve videos summary. $this->load->model('videos_model'); $vs_data['videos'] = $this->videos_model->get_videos_summary( @@ -97,6 +106,10 @@ class Catalog extends CI_Controller { //'metas' => array('description'=>'','keywords'=>'') ); $this->load->library('html_head_params', $params); + + // ** + // ** LOADING VIEWS + // ** $this->load->view('html_begin', $this->html_head_params); $this->load->view('header');