4 * Class User controls video hierarchy and searching
7 * @author Călin-Andrei Burloiu
9 class User extends CI_Controller {
11 public function __construct()
13 parent::__construct();
15 $this->lang->load('user');
18 public function index()
22 public function login()
24 $this->load->library('form_validation');
26 if ($this->form_validation->run() == FALSE)
28 $params = array( 'title' => $this->config->item('site_name'),
33 //'metas' => array('description'=>'')
35 $this->load->library('html_head_params', $params);
40 $this->load->view('html_begin', $this->html_head_params);
41 $this->load->view('header', array('selected_menu' => 'login'));
43 $this->load->view('user/login_view', array());
45 $this->load->view('footer');
46 $this->load->view('html_end');
50 header('Location: ' . site_url());
55 public function _check_login($username, $password)
61 /* End of file user.php */
62 /* Location: ./application/controllers/user.php */