ZF2 Not possible to add my own input filters?

For programming and general questions on Zend Framework

ZF2 Not possible to add my own input filters?

Postby wige2480 on 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?
wige2480
 
Posts: 8
Joined: Fri Aug 26, 2011 3:28 pm

Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 3 guests