Skip to content

Instantly share code, notes, and snippets.

@leopro
Created August 24, 2012 15:23
Show Gist options
  • Save leopro/3451954 to your computer and use it in GitHub Desktop.
Save leopro/3451954 to your computer and use it in GitHub Desktop.
public function indexAction($search)
{
if ( true === $search ) {
}
}
search:
pattern: /search/form
defaults: { _controller: AcmeMyBundle:Search:index, search: false}
search_do:
pattern: /search
defaults: { _controller: AcmeMyBundle:Search:index, search: true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment