I have a very similar problem. I think it might have to to with the
fact that you are using a function in the declaration of the variable.

I also want to use i18n to create the message. Please let me know if
you solve the problem.

Regards,
Jonas

On Jan 5, 12:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I have setup some 1.2 beta validation rules with the message key, but
> this throws and error.  Any idea?
>
> Here is the piece from my model...
>
>    public $validate = array(
>         'username' => array(
>             'alphanumeric' => array(
>                 'rule' => 'alphaNumeric',
>                 'message' => __('error_username', true)
>              ),
>             'between' => array(
>                 'rule' => array('between', 8, 20),
>                 'message' => __('error_username_between', true)
>             ),
>         ),
>
> And here is the error...
>
> Parse error: syntax error, unexpected '(', expecting ')' in /home/
> username/public_html/cake12/app/models/users.php on line 12

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to