small bug with side box fixed
[living-lab-site.git] / application / controllers / article.php
1 <?php
2
3 /**
4  * Class Article typically controls static pages.
5  * Their content depends on the language.
6  *
7  * The page views are located in "application/views/article/$language/$method".
8  *
9  * @category    Controller
10  * @author              Călin-Andrei Burloiu
11  */
12 class Article extends Article_Controller {
13         
14         public function __construct()
15         {
16                 parent::__construct();
17         }
18
19         public function _remap($method, $params = array())
20         {       
21                 parent::_remap($method, $params);
22                 
23                 // **
24                 // ** DATA
25                 // **
26                 
27                 $html_params = array('title' => $this->title.' - '
28                                                                         . $this->config->item('site_name'),
29                                                         'css' => array(
30                                                                 'jquery-ui.css'
31                                                         ),
32                                                         'js' => array(
33                                                                 'jquery.js',
34                                                                 'jquery-ui.js'
35                                                         ),
36                                                         'metas' => 
37                                                                 array('description'=>$this->metaDescription)
38                                                         );
39                 $this->load->library('html_head_params', $html_params);
40
41                 // **
42                 // ** LOADING VIEWS
43                 // **
44                 $this->load->view('html_begin', $this->html_head_params);
45                 $this->load->view('header', array('selected_menu' => $method));
46                 
47                 $main_params['content'] = $this->_load($method, $params);
48                 $main_params['side'] = $this->load->view('side_default.php', NULL, TRUE);
49                 $this->load->view('main', $main_params); 
50                                 
51                 $this->load->view('footer');
52                 $this->load->view('html_end');
53         }
54 }
55
56 /* End of file article.php */
57 /* Location: ./application/controllers/article.php */