Hi!

I am developing a web site with a search function.

For the search function I generated a module and an action.
in the routing.yml I made a rule for this action.

I have two parameters: q for query and p for page
...
search:
  url:   /search
  param: { module: search, action:result }
...

The problem is that link_to cuts all parameters off.

link_to('page 2',"@search?q=word1+word2&p=2);

I think I have to define something in the routing.yml, but I have no
idea what.

I want the url to look like this

www.example.com/search?q=word1+word2&p=1

Any ideas?

Michael

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to