Welcome Guest, Not a member yet? Register   Sign In
$validationMessages Doesn't work!
#1

(This post was last modified: 08-05-2020, 10:00 AM by pars1997.)

Hi.
here is my sample code

PHP Code:
protected $validationRules = [
 
 
'rePassword' => ['rules'=>'required|matches[password]','label'=>'Password repeat'],
    ];

protected 
$validationMessages = [

'rePassword'        => [
                      'required' => 'error'
                ]

]; 

the validation works fine. but error messages shows:
  • The Password repeat field is required.
How can I use error messages in $validationMessages?
Reply
#2

Is it a bug? Or my code is wrong?
Reply
#3

See the #validationSetRules[];
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

sorry to say, you got not reply from this forum. I have some problem like this code but no one solve this.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB