Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-20-2008, 09:12 AM
mel mel is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default Custom validator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-20-2008, 09:56 AM
mel mel is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Default

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?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 11:44 AM.