Rev | Line | |
---|
[310] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
---|
[293] | 2 | /**
|
---|
| 3 | * Home Class
|
---|
| 4 | *
|
---|
| 5 | * @author dzungnv02
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 |
|
---|
[305] | 9 | class Home extends MX_Controller
|
---|
[293] | 10 | {
|
---|
| 11 |
|
---|
| 12 | public function __construct()
|
---|
| 13 | {
|
---|
| 14 | parent::__construct();
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public function index()
|
---|
| 18 | {
|
---|
[294] | 19 | $this->load->view ( 'home');
|
---|
[311] | 20 | }
|
---|
| 21 |
|
---|
| 22 | public function test()
|
---|
| 23 | {
|
---|
[310] | 24 | if (isset($_POST['submit'])){
|
---|
| 25 | $this->signin();
|
---|
| 26 | }
|
---|
[293] | 27 | }
|
---|
| 28 |
|
---|
| 29 | public function signin()
|
---|
| 30 | {
|
---|
[310] | 31 | $username = $this->input->post('username', TRUE);
|
---|
| 32 | $password = $this->input->post('password', TRUE);
|
---|
| 33 | $token = '';
|
---|
[305] | 34 | $this->load->model(array('user_model'));
|
---|
[310] | 35 | $data = $this->user_model->checkLogin('violet', $token, $username, $password);
|
---|
| 36 | //var_dump($data);
|
---|
[293] | 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.