4 * Class Message displays messages (info, error).
6 * Messages are captured from 'msg' flash session variable.
9 * @author Călin-Andrei Burloiu
11 class Message extends CI_Controller {
15 public function __construct()
17 parent::__construct();
19 $this->msg = $this->session->flashdata('msg');
22 public function _remap($method, $par = array())
25 header('Location: '. site_url());
28 'title'=> $this->lang->line("message_title_{$method}")
30 . $this->config->item('site_name'),
31 //'metas' => array('description'=>'')
33 $this->load->library('html_head_params', $params);
38 $this->load->view('html_begin', $this->html_head_params);
39 $this->load->view('header', array());
41 $main_params['content'] =
42 $this->load->view("message/{$method}_view",
43 array('msg'=> $this->msg), TRUE);
45 $main_params['side'] = $this->load->view('side_default', NULL, TRUE);
46 $this->load->view('main', $main_params);
48 $this->load->view('footer');
49 $this->load->view('html_end');
53 /* End of file message.php */
54 /* Location: ./application/controllers/message.php */