On Fri, Jun 19, 2009 at 12:36 AM, lightflowmark<1...@lightflowinterrupted.com> wrote: > > The filter works fine. > $value="z/z"; > echo str_replace("/", ",", (string) $value); // outputs z,z > > It's not being run, or you're testing the value before it has run. > Impossible to tell from the code you've shared :-)
Hi, I am testing the value in my controller (SearchController). The code looks like this: class SearchController extends Zend_Controller_Action { public function indexAction() { //get the Search Form from registry $registry = Zend_Registry::getInstance(); $form = $registry->searchForm; $request = $this->getRequest(); $srchstr = $request->getParam('srchstr'); Zend_Debug::dump($srchstr); exit; } } Since my form is displayed in top of each page, I decided to put that in layout plus the form's other elements are filled from database. Instead of filling it on every page flip, I decided fill up at bootstrap and put that in registry to preserve the filled values. That is why I am getting the form from registry. So IFAIK when submit is pressed in my search form, this SearchController should kick start. Even before that the filter should have done its job so that when I am getting the request string, it should be filtered already. Where I went wrong? Thanks again