- Timestamp:
- Oct 23, 2014 7:31:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/home.php
r305 r310 1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 2 /** 3 3 * Home Class … … 18 18 { 19 19 $this->load->view ( 'home'); 20 } 21 22 public function test() 23 { 24 $this->load->view ( 'home'); 20 if (isset($_POST['submit'])){ 21 $this->signin(); 22 } 25 23 } 26 24 27 25 public function signin() 28 26 { 27 $username = $this->input->post('username', TRUE); 28 $password = $this->input->post('password', TRUE); 29 $token = ''; 29 30 $this->load->model(array('user_model')); 30 $this->load->view('signin'); 31 $data = $this->user_model->checkLogin('violet', $token, $username, $password); 32 //var_dump($data); 31 33 } 32 34
Note: See TracChangeset
for help on using the changeset viewer.