Hi,

i want to change a validator I set in a inputfilter parent class.

I´ll do that with:

        $validators = 
$this->get('main')->get('username')->getValidatorChain()->getValidators();

        $validators[2]['instance']->setOptions(
            array(
                'pattern' => '/^[@a-zA-Z0-9_-]+$/',
            )
        );

I know there is a plugin-Method on the validator chain, but that returns a new 
instance. Is there a better way to do that?

Greetings

Marc

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


Reply via email to