You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
539 B

<?php
/**
* Login Class
*/
class login extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
// Header
$this->load->view('header');
$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');
}
}
?>