• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do you extend the Form Validation library?

#1
[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..

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.