<?php
class MY_Form_validation extends CI_Form_validation {
function __construct () {
parent::__construct();
$this->set_message('required', '%s必须填写!');
$this->set_message('min_length', '%s至少%d个字符!');
$this->set_message('max_length', '%s最多%d个字符!');
$this->set_message('valid_email', '邮箱格式不正确!');
}
function error_string($prefix = '', $suffix = '') {
................