Method/function overrides in Codeigniter

Posted by pingu on Stack Overflow See other posts from Stack Overflow or by pingu
Published on 2010-03-17T01:54:32Z Indexed on 2010/03/17 2:11 UTC
Read the original article Hit count: 399

Filed under:
|
|
|

Hi guys,

I want to override the validation_errors() method of the form helper in CodeIgniter for one controller only, so that it will display a single error message (as a sentence in plain english) instead of the detailed line item summary. I've tried defining a validation_errors() function in my controller, which is what I usually do with Silverstripe's Sapphire framework, but this won't with CI.

What's the best way to override methods for a case by case basis?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about php