custom filters/validators zend framework
i have zend horizon concentration structure below:
/application
/library
/zend
/core
/filter
/myfilter.php
/validator
/myvalidator.php
i put tradition filters validators particular folders have hallowed automatically used. however, i can't figure out best accomplish this.
i need fortitude work zend_filter_input fashion:
$filters = array(
'month' => 'digits',
'account' => 'stringtrim',
'other' => 'myfilter'
);
$validators = array(
'account' => 'alpha',
'other' => 'myvalidator'
);
$inputfilter = new zend_filter_input($filters, $validators);
what i already know:
- core_filter_myfilter implements zend_filter_interface
- obviously, filters validators already consolidate path.
Comments
Post a Comment