4 * Class Article typically controls static pages.
5 * Their content depends on the language.
7 * The page views are located in "application/views/article/$language/$method".
8 * Article's name can be set in language file 'article_lang.php' by using an
9 * entry named "article_$method". If not present "$method" is used as a name.
10 * Article meta description has the entry "article_$method_description"
12 * @category Controller
13 * @author Călin-Andrei Burloiu
15 class Article extends Article_Controller {
17 public function _remap($method, $params = array())
22 $this->lang->load('article');
23 $title = $this->lang->line("article_$method");
26 $descr = $this->lang->line("article_${method}_description");
30 $html_params = array( 'title' =>
31 $title.' - '. $this->config->item('site_name'),
36 'metas' => array('description'=>$descr)
38 $this->load->library('html_head_params', $html_params);
43 $this->load->view('html_begin', $this->html_head_params);
44 $this->load->view('header', array('selected_menu' => $method));
46 $this->load->view('echo',
47 array('output' => $this->_load($method, $params),
51 $this->load->view('footer');
52 $this->load->view('html_end');
56 /* End of file article.php */
57 /* Location: ./application/controllers/article.php */