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

[eluser]JasonS[/eluser]
All I want to do is update the prefix..

Code:
<?php

class MY_Form_validation extends CI_Form_validation {

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

Nothing happens..

El Forum

[eluser]danmontgomery[/eluser]
http://ellislab.com/codeigniter/user-gui...delimiters

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