I'm trying to setup a new ColdBox Module and as part of this I want VT to handle the validation.
VT is passed through as part of the parent project calling the module but ideally I want the module's rules in isolation from the parent.
We're only talking one rule file at the moment so the thought I had was that I could specify a path to my rule for this single time.
Reading the docs though it looks like I can't do that and would be forced down a route of conventions:- http://www.validatethis.org/docs/wiki/How_ValidateThis_Finds_Your_Rules_Definition_Files.cfm#Detailed_Example_of_Locating_Files
Creating a new instance of VT seems a bit OTT at the moment and I'd then have to get my head around how I'd do that within modules.
Does anyone have any suggestions?
Cheers
James
James
--
You received this message because you are subscribed to the Google Groups "ValidateThis" group.
To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/IcG2FAcMq88J.
To post to this group, send email to valida...@googlegroups.com.
To unsubscribe from this group, send email to validatethis...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/validatethis?hl=en.
To unsubscribe from this group, send email to validatethis+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/snfpDDGzUxcJ.
To unsubscribe from this group, send email to validatethis...@googlegroups.com.
ValidateThis.validate(theObject=myObject,objectType='modules.foobar.model.User')To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/-Stg7IblzGEJ.
To unsubscribe from this group, send email to validatethis...@googlegroups.com.
James
--
You received this message because you are subscribed to the Google Groups "ValidateThis" group.
To view this discussion on the web visit https://groups.google.com/d/msg/validatethis/-/OI9V742Bhp4J.