Typically what I have done with validators in the past is create another directory in the library folder (especially if I know I am going to use it again).
What I end up having is something like: library/MyCodeBase/Validators/* and add them into the autoloader. You could essentially do this from within the module directory or even create a new directory under your file system.
You might also want to peak a bit more into the documentation on writing the custom validators: http://framework.zend.com/manual/en/zend.validate.writing_validators.html
Regards,
Mike
----- Original Message -----
From: dmitrybelyakov
Sent: 06/30/09 02:03 pm
To: fw-mvc@lists.zend.com
Subject: [fw-mvc] Where to put my custom validators?
Hello everybody,
I just wonder if there's a default or recommended location for custom
validator classes that go along with my module's forms. I am having trouble
getting it to work and actually autoload. Any help is greatly appreciated.
Dmitry.
--
View this message in context: http://www.nabble.com/Where-to-put-my-custom-validators--tp24277729p24277729.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论