0

How do I make custom validators/filter classes in Zend Framework?

I have done by changes in library but I don't want to do changes in core library files.

Is there any way to do this without changing library files?

3
  • Why haven't you read the documentation? framework.zend.com/manual/en/… framework.zend.com/manual/en/zend.filter.writing_filters.html Commented Dec 18, 2011 at 5:53
  • 1
    gone through it but not getting exactly where to put files Commented Dec 18, 2011 at 5:54
  • put them wherever you want. Zend doesn't require any specific location. You have libary/Zend directory? If so - create library/My one, if not - just create it. Commented Dec 18, 2011 at 5:55

1 Answer 1

1

Is there any way to do this without changing library files?

Sure, just place your filter into a file of it's own and make it accessible to the class loader.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.