ZF2 Not possible to add my own input filters?

For programming and general questions on Zend Framework
Post Reply
wige2480
Posts: 8
Joined: Fri Aug 26, 2011 3:28 pm

ZF2 Not possible to add my own input filters?

Post by wige2480 » Thu Jan 24, 2013 5:41 pm

I have created a custom input filter for ZF2 that extends AbstractFilter. However, I can't find any way to tell ZF2 where the filter is so that I can use it.

I tried adding it to the Module->onBootstrap:
StaticFilter::getPluginManager()->setInvokableClass('Ascii', 'Namespace\Ascii');

However, StaticFilter doesn't seem to be used for anything. So, is there some way that custom filters can be added?

Post Reply