Skip to content

Instantly share code, notes, and snippets.

@rileyrg
Last active June 13, 2017 10:52
Show Gist options
  • Save rileyrg/3555f1be63d4b0db32bb3ca20d23192a to your computer and use it in GitHub Desktop.
Save rileyrg/3555f1be63d4b0db32bb3ca20d23192a to your computer and use it in GitHub Desktop.
$filterForm->handleRequest($request);
if ($filterForm->get('reset')->isClicked()) {
$this->addFlash(
'alert-warning',
$this->get("translator")->trans('filter.cleared', [], 'filter')
);
return new RedirectResponse($request->getPathInfo());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment