Re: Validation plug-ins [message #270 is a reply to message #269] |
Thu, 07 September 2006 12:18 |
AJM
Messages: 2368 Registered: April 2006 Location: Surrey, UK
|
Senior Member |
|
|
I think the most flexible method is to allow you to use whatever file names you like, whatever class names you like, and whatever method names you like. You then have the choice of putting several related methods in the same class, or into separate classes. I do not see the point of restricting it to one method per class, with a fixed method name of validate(). This smells of the infamous "convention over configuration" that RubyOnRails is famous for, and I wish to avoid that if I can.
You are correct in saying that I do not want to use any options that only work in PHP 5.
Tony Marston
http://www.tonymarston.net
http://www.radicore.org
|
|
|