On Mon, Jul 18, 2005 at 01:35:08PM -0400, Cees Hek wrote:
> And I ran into the same issue as you with multiple constraints for a
> single parameter, so I ended up rolling my own solution that works
> pretty much exactly as C::A::P::VRM, except that it creates a
> multi-dimentional hash for multiple constraints. It usually looks
> something like this:
This is pretty much the same situation I've run into, and pretty much
the same solution. I'm not using the plugin, I just have the methods in
my base class (I _always_ do validation if there's input, so why not?)
The thought of using msg hadn't occured to me, because, (like you) I
prefer to leave the exact message to the designer, so I just set flags
in a hash as Cees did.
--
SwiftOne / Brett Sanger
suppressed
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.