Re: Data validation

[prev] [thread] [next] [Date index for 2004/11/10]

From: Drew Taylor
Subject: Re: Data validation
Date: 01:15 on 10 Nov 2004
On Tue, 9 Nov 2004 18:20:53 -0500, Edward J. Sabol
<sabol@xxxxxxxx.xxxx.xxxx.xxx> wrote:
> > The docs imply that validate_column_values() is the right place to do
> > this validation, but the implementation makes this rather messy. How do
> > other people do validation?
> 
> FWIW, I use a MVC (Model-View-Controller) design pattern. My CDBI classes are
> Models in that pattern, and I put data validation in their respective
> Controller classes, IMHO, since it's the Controller class that interacts with
> the user and creates and modifies each Model class. I currently use my own
> validation module which heavily extends Params::Validate. If I had to do it
> over again, I'd probably use Data::FormValidator.

I also follow the MVC pattern in my applications. I do form validation
in my CGI::Application-based applications with DFV, but the paranoid
part of me wants validation at the model level too - mostly to check
for required fields, etc.

Drew
        -- 
        ----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew@xxxxxxxxxx.xxx  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------

(message missing)

Data validation
Drew Taylor 20:39 on 09 Nov 2004

Re: Data validation
Drew Taylor 20:44 on 09 Nov 2004

Re: Data validation
Perrin Harkins 22:08 on 09 Nov 2004

Re: Data validation
Drew Taylor 22:14 on 09 Nov 2004

Re: Data validation
Edward J. Sabol 23:20 on 09 Nov 2004

Re: Data validation
Drew Taylor 01:15 on 10 Nov 2004

Re: Data validation
Dan Sully 01:40 on 10 Nov 2004

Re: Data validation
Perrin Harkins 06:42 on 10 Nov 2004

Re: Data validation
Dan Sully 06:59 on 10 Nov 2004

Re: Data validation
Drew Taylor 14:56 on 10 Nov 2004

Re: Data validation
Drew Taylor 15:03 on 10 Nov 2004

Re: Data validation
Perrin Harkins 22:03 on 10 Nov 2004

Re: Data validation
Kingsley Kerce 14:38 on 10 Nov 2004

Re: Data validation
Drew Taylor 15:17 on 10 Nov 2004

Re: Data validation
Tony Bowden 19:28 on 10 Nov 2004

Re: Data validation
Perrin Harkins 21:20 on 10 Nov 2004

Re: Data validation
Cees Hek 23:52 on 10 Nov 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52