Here is my controller
function register(){
$_POST['username'] = $_GET['username'];
$this->load->library('form_validation');
$this->load->helper('form');
$this->form_validation->set_rules('username', 'username', 'required|trim|xss_clean|min_length[5]');
if($this->form_validation->run())
{
}
var_dump(form_error('username'));
}
Can I test this funtion with home/register?username=test ??? I tried but it not working