ok..
I've noticed another thing, when using old validation methods, 'error'
shows up, when using the new ones, don't.

say:

// view
<?php echo $form->inputs(array(
                'username' => array(
                        'label' => 'Username',
                        'div'   => 'required',
                        'size'  => '30',
                        'error' => 'Inserire un username valido.'
                ),
// model
define('VALID_USERNAME', '/^[-_.a-zA-Z0-9]{4,}$/');
[...]
class User extends AppModel {
[...]
        var $validate = array(
                                'username' => array('rule' => array('custom', 
VALID_USERNAME)),

the 'error' doesn't show, if we were using something like
VALID_NOT_EMPTY it will.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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