Creating Custom Filter

intro
This article shows how to create a custom filter that extends Zend_Filter_Interface. The filter in this article is used for replacing a value with array value.

1.Create Custom Filter
Create the file library/My/Filter/ArrayValue.php with the following content.
2.Create Controller
Create the file application/controllers/FilterController.php with the following content.
3.Create View
Create the file application/views/script/filter/index.phtml with the following content.
3.Result of Execution
Below is the output of view.

History
Date Content
2008/4/25 Published
2008/4/27 It was modified to filter array.

Leave a Reply

Your email address will not be published. Required fields are marked *