當我試圖設置自定義消息,使用下面的語句中的CodeIgniter下from_validation庫是錯誤的..笨set_message()
$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.
請讓我走出困境。
這是最好的答案,我知道請參閱編輯答案欲瞭解更多信息 –