cis notified web server of a job completion; upload form interface and validation...
[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.' &ndash; '
28                                                                         . $this->config->item('site_name'),
29                                                         'css' => $this->css,
30                                                         'js' => $this->js,
31                                                         'metas' => 
32                                                                 array('description'=>$this->metaDescription)
33                                                         );
34                 $this->load->library('html_head_params', $html_params);
35
36                 // **
37                 // ** LOADING VIEWS
38                 // **
39                 $this->load->view('html_begin', $this->html_head_params);
40                 $this->load->view('header', array('selected_menu' => $method));
41                 
42                 $main_params['content'] = $this->_load($method, $params);
43                 $main_params['side'] = $this->load->view('side_default.php', NULL, TRUE);
44                 $this->load->view('main', $main_params); 
45                                 
46                 $this->load->view('footer');
47                 $this->load->view('html_end');
48         }
49 }
50
51 /* End of file article.php */
52 /* Location: ./application/controllers/article.php */