Yarp, but I need to inject my mapper upfront into the validator. Pulling it 
from the sm in some way would be great.

-----Ursprüngliche Nachricht-----
Von: Christian Ebert [mailto:[email protected]] 
Gesendet: Dienstag, 13. November 2012 12:58
An: Marc Tempelmeier; [email protected]
Betreff: AW: [fw-general] Custom validator in input filter

You can simply specify the path to your validator 

$inputfilter->add(array(
    'name' => 'email',
    'validators' => array(
        array(
            'name' => 'YourValidatorNamespace\Validator\EmailAddressExists',
            'options' => array(
                'message' => 'lala yadda'
            )
        )
    )
));

-----Ursprüngliche Nachricht-----
Von: Marc Tempelmeier [mailto:[email protected]] 
Gesendet: Dienstag, 13. November 2012 12:21
An: [email protected]
Betreff: [fw-general] Custom validator in input filter

Hi,

I wrote a custom validator which checks via injected mapper if an email
address exists in our SOAP Service. 
How can I make such validators accessibly in the input filter?

What I want is something like that:

$inputfilter->add(array(
    'name' => 'email',
    'validators' => array(
        array(
            'name' => 'EmailAddressExists',
            'options' => array(
                'message' => 'lala yadda'
            )
        )
    )
));

Thx in advance :)

Cheers

Marc

--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]



--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to