public function resetButton($title = null, array $options = [])
    {
        if (!$title) {
            $title = __d('list_filter', 'list_filter.reset');
        }
        $params = $this->_View->request->query;
        if (!empty($params)) {
            foreach ($params as $field => $value) {
                if (substr($field, 0, 7) == 'Filter-') {
                    unset($params[$field]);
                }
            }
        }
        $options = Hash::merge($this->config('resetButtonOptions'), $options);
        $url = Hash::merge($this->request->params, [
            'resetFilter' => true
        ]);

        return $this->Html->link($title, Router::reverse($url), $options);
    }
public function resetButton($title = null, array $options = [])
    {
        if (!$title) {
            $title = __d('list_filter', 'list_filter.reset');
        }
        $params = $this->_View->request->query;
        if (!empty($params)) {
            foreach ($params as $field => $value) {
                if (substr($field, 0, 7) == 'Filter-') {
                    unset($params[$field]);
                }
            }
        }
        $options = Hash::merge($this->config('resetButtonOptions'), $options);
        $url = Hash::merge($this->request->params, [
            'resetFilter' => true
        ]);

        return $this->Html->link($title, Router::reverse($url), $options);
    }
public function resetButton ( $ title = null , array $ options = [ ] ) { if ( ! $ title ) { $ title = __d ( 'list_filter' , 'list_filter.reset' ) ; } $ params = $ this -> _View -> request -> query ; if ( ! empty ( $ params ) ) { foreach ( $ params as $ field => $ value ) { if ( substr ( $ field , 0 , 7 ) == 'Filter-' ) { unset ( $ params [ $ field ] ) ; } } } $ options = Hash :: merge ( $ this -> config ( 'resetButtonOptions' ) , $ options ) ; $ url = Hash :: merge ( $ this -> request -> params , [ 'resetFilter' => true ] ) ; return $ this -> Html -> link ( $ title , Router :: reverse ( $ url ) , $ options ) ; }
Outputs the filter reset link

@param string $title caption for the reset button
@param array $options Options
@return string
Outputs the filter reset link