当我尝试使用以下语句在 CodeIgniter 中的 from_validation 库下设置错误的自定义消息时..
$this->form_validation->set_message("is_unique", "%s already registered. Try a different %s");
而不是得到Username already registered. Try a different Username
我得到Username already registered. Try a different users.username
虽然文档说If you include %s in your error string, it will be replaced with the "human" name you used for your field when you set your rules.
请让我脱离陷阱。