Hi All,
I'm trying using 'Digits' filter on Zend_Form like this :
======
class My_Form_Project_Test extends Zend_Form{
public function __construct($options = null){
parent::__construct($options);
$update = new Zend_Form_Element_Text('test');
$update->setLabel('Test')
->addFilter('Digits');
$submit = new Zend_Form_Element_Submit('submit');
$submit->setLabel('Submit');
$this->addElements(array($update, $submit));
}
}
then, when input '1000asdf', I'm expecting get '1000' but the code above give
me '1000asdf' instead of '1000' as expected.
Is any wrong with my code above.
..
thanks in advance, bn- Re: [fw-general] handle any exception with er... Waigani
- Re: [fw-general] handle any exception wit... Jason Webster
- Re: [fw-general] handle any exception... Waigani
- Re: [fw-general] handle any excep... Waigani
- Re: [fw-general] handle any ... Waigani
- Re: [fw-general] handle ... Waigani
- Re: [fw-general] handle any exception with errorCo... Matthew Weier O'Phinney
- Re: [fw-general] handle any exception with er... keith Pope
- Re: [fw-general] handle any exception wit... Waigani
- Re: [fw-general] handle any exception... Jason Webster
- [fw-general] Filter Digits on Zend_Form Bagus Nugroho
- Re: [fw-general] Filter Digits on Zend_Fo... Matthew Weier O'Phinney
- RE: [fw-general] Filter Digits on Zen... Bagus Nugroho
- Re: [fw-general] Filter Digits on... Matthew Weier O'Phinney
- RE: [fw-general] Filter Digi... Bagus Nugroho
- [fw-general] "Multi-div... Bagus Nugroho
- Re: [fw-general] handle any exception with er... Jason Webster
- Re: [fw-general] handle any exception wit... Matthew Weier O'Phinney
