Zend Framework Opt-Out Filtering Env.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Zend Framework Opt-Out Filtering Env.

Post 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) );
 
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Zend Framework Opt-Out Filtering Env.

Post by Christopher »

I think you want to extend their Request class or use preFiltering.
(#10850)
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: Zend Framework Opt-Out Filtering Env.

Post by DaveTheAve »

I'm still lost on how I'd accomplish that. :roll:
User avatar
DaveTheAve
Forum Contributor
Posts: 385
Joined: Tue Oct 03, 2006 2:25 pm
Location: 127.0.0.1
Contact:

Re: Zend Framework Opt-Out Filtering Env.

Post by DaveTheAve »

Any thoughts?
Post Reply