Hi,
I don't understand why it was removed. Instead of writing
Zend_Loader::loadClass('Zend_Filter_Input');
$input = new Zend_Filter_Input($this->_getAllParams());
$id = $input->getDigits('id');
$name = $input->getAlpha('name');
$login = $input->getAlnum('login');
I have to use
Zend_Loader::loadClass('Zend_Filter_Digits');
Zend_Loader::loadClass('Zend_Filter_Alpha');
Zend_Loader::loadClass('Zend_Filter_Alnum');
$id = Zend_Filter_Digits::filter($this->_getParam('id'));
$name = Zend_Filter_Alpha::filter($this->_getParam('name'));
$login = Zend_Filter_Alnum::filter($this->_getParam('login'));
Where is the improvement?
We use a central <<module>>_Controllers_Action extends
Zend_Controller_Action, in its init-function we just called
$this->input = new Zend_Filter_Input($this->_getAllParams());
and we had access to the Filter in every Controller.
I guess I will just copy the functions of Zend_Filter_Input to a own
class :)
cya, Alex
Jason Qi schrieb:
Please to see Rob's Goodbye Zend.php
http://akrabat.com/
Hope it helps
Jason.
*/Adam Balgach <[EMAIL PROTECTED]>/* wrote:
All,
How does the functionality change from .8 -> .9 for
Zend_Filter_Input...
I was using something like:
Zend::register('post', new Zend_Filter_Input($_POST, false));
Zend::register('get', new Zend_Filter_Input($_GET, false));
but i see this class has gone away...
------------------------------------------------------------------------
TV dinner still cooling?
Check out "Tonight's Picks"
<http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/> on Yahoo! TV.