Ian P. Christian wrote:
Matthias Nothhaft wrote:Hi, the sfCompareValidator is a bit stupid.. Wouldn't it be nice if one could choose the comparison operation, e.g. eq, neq, gt, lt, le, ge ? At the moment it should read sfCompareEqualValidator as this is all it can do. :-(good idea - as long as this defaults to 'eq' then it wouldn't break BC be implementing it would it? Can you provide a patch?
I atached my compare validator to this mail. Just add a "compare: op" to your validation setting where op is one of: gt, ge, lt, le, neq, eq It defaults to eq if no compare setting is given. Regards, Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
myCompareValidator.php
Description: application/httpd-php
