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

Last change on this file since 310 was 310, checked in by namnd, 11 years ago
File size: 828 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                if (isset($_POST['submit'])){
21                        $this->signin();
22                }
23        }
24       
25        public function signin()
26        {
27                $username = $this->input->post('username', TRUE);
28                $password = $this->input->post('password', TRUE);
29                $token = '';
30                $this->load->model(array('user_model'));
31                $data = $this->user_model->checkLogin('violet', $token, $username, $password);
32                //var_dump($data);
33        }
34       
35        public function signout()
36        {
37               
38        }
39
40}
41
42/* End of file home.php */
43/* Location: ./application/modules/frontend/controllers/home.php */
Note: See TracBrowser for help on using the repository browser.