public function setPreviousUrlFunction($params, &$smarty)
    {
        $ignore_current = $this->getParam($params, 'ignore_current', false);

        if ($ignore_current !== false) {
            $this->getRequest()->attributes->set('_previous_url', 'dont-save');
        } else {
            $this->getRequest()->attributes->set('_previous_url', $this->generateUrlFunction($params, $smarty));
        }
    }
public function setPreviousUrlFunction($params, &$smarty)
    {
        $ignore_current = $this->getParam($params, 'ignore_current', false);

        if ($ignore_current !== false) {
            $this->getRequest()->attributes->set('_previous_url', 'dont-save');
        } else {
            $this->getRequest()->attributes->set('_previous_url', $this->generateUrlFunction($params, $smarty));
        }
    }
public function setPreviousUrlFunction ( $ params , & $ smarty ) { $ ignore_current = $ this -> getParam ( $ params , 'ignore_current' , false ) ; if ( $ ignore_current !== false ) { $ this -> getRequest ( ) -> attributes -> set ( '_previous_url' , 'dont-save' ) ; } else { $ this -> getRequest ( ) -> attributes -> set ( '_previous_url' , $ this -> generateUrlFunction ( $ params , $ smarty ) ) ; } }
Set the _previous_url request attribute, to define the previous URL, or
prevent saving the current URL as the previous one.

@param array                     $params
@param \Smarty_Internal_Template $smarty
Set the _previous_url request attribute to define the previous URL or prevent saving the current URL as the previous one .