projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
article engine for static pages was integrated
[living-lab-site.git]
/
application
/
controllers
/
catalog.php
diff --git
a/application/controllers/catalog.php
b/application/controllers/catalog.php
index
8a325e7
..
23a2f17
100644
(file)
--- a/
application/controllers/catalog.php
+++ b/
application/controllers/catalog.php
@@
-1,7
+1,7
@@
<?php
/**
<?php
/**
- * Class Catalog control
l
s video hierarchy and searching
+ * Class Catalog controls video hierarchy and searching
*
* @category Controller
* @author Călin-Andrei Burloiu
*
* @category Controller
* @author Călin-Andrei Burloiu
@@
-17,6
+17,9
@@
class Catalog extends CI_Controller {
public function index()
{
public function index()
{
+ // **
+ // ** LOADING MODEL
+ // **
// Retrieve videos summary.
$this->load->model('videos_model');
foreach ($this->config->item('categories') as $id => $name)
// Retrieve videos summary.
$this->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'),
}
$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);
//'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('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);
$this->load->view('catalog/index_view', $data);
@@
-55,17
+65,14
@@
class Catalog extends CI_Controller {
public function test($page = 0)
{
public function test($page = 0)
{
- $this->load->helper('url');
- $this->load->library('pagination');
- $config['base_url'] = site_url('catalog/test/');
- $config['total_rows'] = '160';
- $this->pagination->initialize($config);
- echo $this->pagination->create_links();
}
public function category($category_id, $offset = 0)
{
}
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(
// Retrieve videos summary.
$this->load->model('videos_model');
$vs_data['videos'] = $this->videos_model->get_videos_summary(
@@
-99,6
+106,10
@@
class Catalog extends CI_Controller {
//'metas' => array('description'=>'','keywords'=>'')
);
$this->load->library('html_head_params', $params);
//'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('html_begin', $this->html_head_params);
$this->load->view('header');