You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Is there an equivalent to jquery validation plugin 's message field in Pajama? Something like:
\Pajama\Validator::validate(array(
'model' => $_POST,
'rules' => array(
'first_name' => 'required',
'last_name' => 'required',
),
'messages': {
'first_name' => 'Enter the first name',
'last_name' => 'Enter the last name',
}
));
I am trying to use Pajama, but one of my requirements is that form validation works both with javascript enable and disable. With Pajama it is this way, except for the error messages. I do not find a clean way to detect which rules has failed in order to create a proper error message.
Greetings,
Alberto Morell.
The text was updated successfully, but these errors were encountered:
Hi!
Is there an equivalent to jquery validation plugin 's message field in Pajama? Something like:
\Pajama\Validator::validate(array(
'model' => $_POST,
'rules' => array(
'first_name' => 'required',
'last_name' => 'required',
),
'messages': {
'first_name' => 'Enter the first name',
'last_name' => 'Enter the last name',
}
));
I am trying to use Pajama, but one of my requirements is that form validation works both with javascript enable and disable. With Pajama it is this way, except for the error messages. I do not find a clean way to detect which rules has failed in order to create a proper error message.
Greetings,
Alberto Morell.
The text was updated successfully, but these errors were encountered: