Hello i'm back again :P My new goal is to automatically set "last" => "true" in every validation rule of every model.
here's my actual code (that doesn't work T_T) <?php class AppModel extends Model { function beforeValidate() { foreach ($this->validate as $field) { foreach ($field as $rule) { $rule["last"] = true; } } return true; } } ?> i can't find out where's the error --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---