Welcome Guest, Not a member yet? Register   Sign In
set_error_delimiters for group of errors
#4

[eluser]pims[/eluser]
... or you can hack the Validation class, add two properties to the object, like for instance
Code:
var $_error_open_tag;
var $_error_close_tag;

and in the run method of the class, near line 361, write something like:
Code:
// Generate the error string
    $this->error_string .= $this->error_open_tag;
    foreach ($this->_error_array as $val)
    {
        $this->error_string .= $this->_error_prefix.$val.$this->_error_suffix."\n";
    }
   $this->error_string .= $this->error_close_tag;

That should do the trick, and you should be able to customize the tags in your controller.


Messages In This Thread
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 04:54 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:22 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:35 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 05:41 PM
set_error_delimiters for group of errors - by El Forum - 01-10-2008, 06:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB