Welcome Guest, Not a member yet? Register   Sign In
translation doesn't work with second field name in "matches" validation rule
#14

[eluser]Benedikt[/eluser]
<code>
$rules[] = array( 'field' => 'Password', 'label' => 'langTongueassword', 'rules' => 'trim|required|matches[Password2]' );
$rules[] = array( 'field' => 'Password2', 'label' => 'langTongueassword2', 'rules' => 'trim|required' );
</code>

<code>
$lang['Password'] = "Password";
$lang['Password2'] = "Confirm password";
</code>

What is wrong then? In all error messages (no matching-rule here) it works, but here no.

What am I doing wrong then?

<code>
// CI Version
define('CI_VERSION', '1.7.2');
</code>


Messages In This Thread
translation doesn't work with second field name in "matches" validation rule - by El Forum - 12-13-2009, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB