X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fcatalog.php;h=37b1a6cb32ecaa0ec1dae4c3d030068526fc13b1;hb=a4b67ff4aaa76dc95e774be78724909193999ee4;hp=8dacaae608d2a4041064c2a90d8b49cb429774aa;hpb=0b134deb6f1108155973436e3de7296a76a2d660;p=living-lab-site.git diff --git a/application/controllers/catalog.php b/application/controllers/catalog.php index 8dacaae..37b1a6c 100644 --- a/application/controllers/catalog.php +++ b/application/controllers/catalog.php @@ -10,17 +10,36 @@ class Catalog extends CI_Controller { 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'); + + echo 'link'; + } + + public function search($query_str) + { + echo $query_str; + } } /* End of file catalog.php */