projects
/
living-lab-site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bug fixes; views is incrementing; started to create help page -- imagemap widget...
[living-lab-site.git]
/
application
/
controllers
/
catalog.php
diff --git
a/application/controllers/catalog.php
b/application/controllers/catalog.php
index
3285c67
..
0c05388
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,15
+42,23
@@
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'
+ ),
//'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);
+ $main_params['content'] = $this->load->view('catalog/index_view', $data, TRUE);
+ $main_params['side'] = $this->load->view('side_default.php', NULL, TRUE);
+ $this->load->view('main', $main_params);
$this->load->view('footer');
$this->load->view('html_end');
$this->load->view('footer');
$this->load->view('html_end');
@@
-55,16
+66,30
@@
class Catalog extends CI_Controller {
public function test($page = 0)
{
public function test($page = 0)
{
- $this->load->helper('url');
+ $params = array( 'title' => 'Test - '. $this->config->item('site_name'),
+ //'css' => array(),
+ //'js' => array(),
+ //'metas' => array('description'=>'','keywords'=>'')
+ );
+ $this->load->library('html_head_params', $params);
- $str = '[{"def":"1080p"},{"def":"600p"}]';
- $a = json_decode($str);
+ // **
+ // ** LOADING VIEWS
+ // **
+ $this->load->view('html_begin', $this->html_head_params);
+ $this->load->view('header', array('selected_menu' => 'home'));
+
+ $this->load->view('echo', array('output'=>'Test Page', 'clear'=>TRUE));
- echo count($a);
+ $this->load->view('footer');
+ $this->load->view('html_end');
}
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(
@@
-93,15
+118,23
@@
class Catalog extends CI_Controller {
$vs_data, TRUE);
$params = array( 'title' => $this->config->item('site_name'),
$vs_data, TRUE);
$params = array( 'title' => $this->config->item('site_name'),
- 'css' => array('catalog.css'),
+ 'css' => array(
+ 'catalog.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('header');
$this->load->view('html_begin', $this->html_head_params);
$this->load->view('header');
- $this->load->view('catalog/category_view', $data);
+ $main_params['content'] = $this->load->view('catalog/category_view', $data, TRUE);
+ $main_params['side'] = $this->load->view('side_default.php', NULL, TRUE);
+ $this->load->view('main', $main_params);
$this->load->view('footer');
$this->load->view('html_end');
$this->load->view('footer');
$this->load->view('html_end');