Page 1 of 1

Zend Framework Opt-Out Filtering Env.

Posted: Sun Mar 30, 2008 4:58 pm
by DaveTheAve
How do I get Zend_Filter to achieve this effect in the bootstrap?

Code: Select all

 
<?php
Zend_Registry::set('filterGet',     new Zend_Filter_Input($_GET) );
Zend_Registry::set('filterPost',    new Zend_Filter_Input($_POST) );
Zend_Registry::set('filterCookie',  new Zend_Filter_Input($_COOKIE) );
Zend_Registry::set('filterRequest', new Zend_Filter_Input($_REQUEST) );
Zend_Registry::set('filterEnv',     new Zend_Filter_Input($_ENV) );
Zend_Registry::set('filterServer',  new Zend_Filter_Input($_SERVER) );
 

Re: Zend Framework Opt-Out Filtering Env.

Posted: Sun Mar 30, 2008 6:23 pm
by Christopher
I think you want to extend their Request class or use preFiltering.

Re: Zend Framework Opt-Out Filtering Env.

Posted: Tue Apr 01, 2008 3:34 pm
by DaveTheAve
I'm still lost on how I'd accomplish that. :roll:

Re: Zend Framework Opt-Out Filtering Env.

Posted: Sat Apr 05, 2008 12:12 pm
by DaveTheAve
Any thoughts?