Dash page fixed
This commit is contained in:
@@ -3,11 +3,22 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Login extends CI_Controller {
|
||||
|
||||
public function index() {
|
||||
// echo rand(1000, 9999);
|
||||
// print_r($this->input->get());
|
||||
|
||||
public function index()
|
||||
{
|
||||
//$this->load->view('provider/dash');
|
||||
$this->load->view('welcome_message');
|
||||
if ($_POST) {
|
||||
|
||||
$data['username'] = trim($this->input->post('username'));
|
||||
$data['pass'] = htmlspecialchars($this->input->post('pass'));
|
||||
$this->load->view('provider/dash');
|
||||
} else {
|
||||
$this->load->view('welcome_message');
|
||||
// $this->load->view('provider/dash');
|
||||
}
|
||||
|
||||
//$this->load->view('provider/dash');
|
||||
//$this->load->view('welcome_message');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user