Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Users extends CI_Controller {
- public function login()
- {
- //Setting up variables
- $username = $this->input->post('username');
- $password = $this->input->post('password');
- $this->load->model('users_model');
- $checkUser = $this->users_model->checkUser($username, $password);
- echo $this->input->post('username');
- //if($checkUser):
- // echo "Logget in";
- //else:
- // echo "false!";
- //endif;
- }
- }
Add Comment
Please, Sign In to add comment