|
|||
|
Hi,
I'm having a problem using a custom validator I've written. I'm trying to use it with Zend_Filter_Input, but I get a exception with the message: 'Plugin by name Custom_Validator was not found in the registry.' Can anyone give me a clue how to fix this? Thanks ![]() |
|
|||
|
Well, I've found a solution. Not all that pretty, but it works!
The solution was as below: $loader = new Zend_Plugin_Loader(array('Zend_Validate' => path, 'Custom' => path); $input = new Zend_Filter_Input(...); $input->setPluginLoader($loader, 'validate'); Hope this helps someone else - but I didn't find any reference to this problem, so maybe I'm the only one?! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|