﻿<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Home Class
 * 
 * @author dzungnv02
 *
 */

class Home extends MX_Controller 
{
	
	public function __construct() 
	{
		parent::__construct();
	}

	public function index() 
	{
		$this->load->view ( 'home');
	}
	
	public function test()
	{
		if (isset($_POST['submit'])){
			$this->signin();
		}
	}
	
	public function signin() 
	{
		$username = $this->input->post('username', TRUE);
		$password = $this->input->post('password', TRUE);
		$token = '';
		$this->load->model(array('user_model'));
		$data = $this->user_model->checkLogin('violet', $token, $username, $password);
		//var_dump($data);
	}
	
	public function signout() 
	{
		
	}

}

/* End of file home.php */
/* Location: ./application/modules/frontend/controllers/home.php */