book.cakephp.org/view/1401/options-error
If your form looked something like this you would get the result you
are looking for:
echo $this->Form->input('username', array('error' => $this-
>data['User']['username'] . ' is taken'));
On Dec 29, 11:07 am, Greg Skerman <gsker...@gmail.com> wrote:
> Hi,
>
> I'm trying to make my validation messages a little more meaningful.
>
> I would like to include the failed input in the validation message itself.
>
> So rather than a message like "That username is already taken"
> I would like to show "The username <user> is already taken"
>
> Is this possible?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment