load->view('login/form_login',$data);
}
public function process(){
$this->load->model('m_login');
$result = $this->m_login->validate();
if(! $result){
$error = '
Username atau Password Salah!
';
$this->index($error);
}else{
redirect('index.php');
}
}
public function logout(){
$this->session->sess_destroy();
redirect('index.php/ps_login');
}
}
?>