X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Fmessage.php;fp=application%2Fcontrollers%2Fmessage.php;h=5d8b9dc360d0c2849dc45b56515a5555339e5bcf;hb=9cc2a6602b47ac97d72efa51ec654418b252b4e4;hp=0000000000000000000000000000000000000000;hpb=355535fa933c0fc2c1d63f0d4df3b1fc6e60d05c;p=living-lab-site.git diff --git a/application/controllers/message.php b/application/controllers/message.php new file mode 100644 index 0000000..5d8b9dc --- /dev/null +++ b/application/controllers/message.php @@ -0,0 +1,54 @@ +msg = $this->session->flashdata('msg'); + } + + public function _remap($method, $params = array()) + { + if (! $this->msg) + header('Location: '. site_url()); + + $params = array( + 'title'=> $this->lang->line("message_title_{$method}") + .' – ' + . $this->config->item('site_name'), + //'metas' => array('description'=>'') + ); + $this->load->library('html_head_params', $params); + + // ** + // ** LOADING VIEWS + // ** + $this->load->view('html_begin', $this->html_head_params); + $this->load->view('header', array()); + + $main_params['content'] = + $this->load->view("message/{$method}_view", + array('msg'=> $this->msg), TRUE); + + $main_params['side'] = $this->load->view('side_default', NULL, TRUE); + $this->load->view('main', $main_params); + + $this->load->view('footer'); + $this->load->view('html_end'); + } +} + +/* End of file message.php */ +/* Location: ./application/controllers/message.php */