CodeIgniter Forums

Full Version: How do you extend the Form Validation library?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

All I want to do is update the prefix..


class MY_Form_validation extends CI_Form_validation {

    var $_error_prefix            = '<p class="error">';

Nothing happens..

El Forum


$this->form_validation->set_error_delimiters('<div class="error">', '</div>');