CodeIgniter Forums

Full Version: Issue with form validation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Ci beginner[/eluser]
---

El Forum

[eluser]skunkbad[/eluser]
$this->validation->set_rules() should be $this->form_validation->set_rules()

also, your array for configuring bulk rules is not correct, see the docs

El Forum

[eluser]Ci beginner[/eluser]
---

El Forum

[eluser]skunkbad[/eluser]
I don't see a reason why the callback wouldn't get called, but for instance, in your username check callback, you wouldn't just return TRUE, you would return $username. Then you use set_value() to use that validated and potentially modified value. Maybe just returning true isn't good enough.