CodeIgniter Forums
DMZ Validation - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: DMZ Validation (/showthread.php?tid=37545)



DMZ Validation - El Forum - 01-13-2011

[eluser]NeilyM[/eluser]
Hey Guys

I'm using DataMapper DMZ and it's excellent. In particular, its validation at model level is a godsend.

I want to create models for information that won't be stored in a table so that I can use DMZ validation on those models. However, if I create a model that has no associated table, DMZ predictably throws up an error.

Is there a way to use DMZ validation on "tableless" models or do I need to use separate validation routines for those models?

I guess the crux of the matter is that not all form fields will get stored in the database but still need to be validated.

Any suggestions for the best way forward?

Thanks guys.

NeilyM