>
> > So i think it would be great for all the cake comunity to have this
> > concept implementated on the next release of cake!
>
> Please open an enhancement ticket for it on trac (https://
> trac.cakephp.org) so the devs can consider to add it.
>

I don't think it's appliable... use MyModel::__construct()

class User extends AppModel
{
    var $name           = 'User';
        var $validate   = NULL;

        function __construct($id = false, $table = null, $ds = null)
        {
                parent::__construct($id, $table, $ds);
                $this->validate = array(
                                'nombre' => array(
                                                'regla1_nombre' =>
array(
 
'rule'  => array('minLength','3'),
 
'message'       => __('Minimum length of 3 characters',true)
                                                                                
    ),
                                                'regla2_nombre' =>
array(
 
'rule'  => array('maxLength','50'),
 
'message'       => __('Maximum length of 50 characters',true)
                                                                                
   )
                                                        )
                                                 );
        }

}

Why would one have to care about one more method with the same purpose
of the another?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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