|
|
|
@ -15,8 +15,17 @@ class Login extends CI_Controller
@@ -15,8 +15,17 @@ class Login extends CI_Controller
|
|
|
|
|
// Header |
|
|
|
|
$this->load->view('header'); |
|
|
|
|
|
|
|
|
|
// Content |
|
|
|
|
$this->form_validation->set_rules('username', 'Username', 'required'); |
|
|
|
|
$this->form_validation->set_rules('password', 'Password', 'required'); |
|
|
|
|
|
|
|
|
|
if ($this->form_validation->run() == FALSE) |
|
|
|
|
{ |
|
|
|
|
// login page |
|
|
|
|
$this->load->view('login'); |
|
|
|
|
} else { |
|
|
|
|
echo "Done"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Footer |
|
|
|
|
$this->load->view('footer'); |
|
|
|
|