public function renderFilter() { $action = htmlentities($this->grid->getCompleteRequest()->getBaseUrl() . $this->grid->getCompleteRequest()->getPathInfo(), ENT_QUOTES, 'UTF-8'); $title = $this->getTitle(); $vars = $this->getAllButFilterVars(); $hiddenInputs = Am_Controller::renderArrayAsInputHiddens($vars); $inputs = $this->renderInputs(); $button = $this->renderButton(); return <<<CUT <div class="filter-wrap"> <form class="filter" method="get" action="{$action}"> <span class="filter-title">{$title}</span> {$hiddenInputs} {$inputs} {$button} </form> </div> CUT; }