source: pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php @ 311

Last change on this file since 311 was 311, checked in by dungnv, 11 years ago
File size: 864 bytes
Line 
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * Home Class
4 *
5 * @author dzungnv02
6 *
7 */
8
9class Home extends MX_Controller
10{
11       
12        public function __construct()
13        {
14                parent::__construct();
15        }
16
17        public function index()
18        {
19                $this->load->view ( 'home');
20        }
21       
22        public function test()
23        {
24                if (isset($_POST['submit'])){
25                        $this->signin();
26                }
27        }
28       
29        public function signin()
30        {
31                $username = $this->input->post('username', TRUE);
32                $password = $this->input->post('password', TRUE);
33                $token = '';
34                $this->load->model(array('user_model'));
35                $data = $this->user_model->checkLogin('violet', $token, $username, $password);
36                //var_dump($data);
37        }
38       
39        public function signout()
40        {
41               
42        }
43
44}
45
46/* End of file home.php */
47/* Location: ./application/modules/frontend/controllers/home.php */
Note: See TracBrowser for help on using the repository browser.