在CodeIgniter中運行表單驗證時,是否可以更改matches
調用的輸出?CodeIgniter表單驗證匹配標籤
我正在根據確認密碼框驗證密碼。
array(
'field' => 'userPassword',
'label' => 'Password',
'rules' => 'trim|required|matches[userConfPassword]'
)
但在觸發錯誤它打印出:
The Password field does not match the userConfPassword field.
的用戶不知道是userConfPassword
手段,我想改變的東西更友好。閱讀文檔我找不到辦法做到這一點。
完美!我從來沒有想到你可以覆蓋現有的信息。謝謝! – Seth 2011-12-24 17:08:28