you can use in your routing.yml

for example

advertisement_show:
  url: /advertisement/:category
  class: sfRequestRoute
  param: {module: advertisement, action: index }
  requirements:
    id: \d+

try this, this simple, you can read the routing.

http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System




On Tue, Nov 3, 2009 at 3:43 AM, HAUSa
<[email protected]> wrote:
>
> When I use url_for('advertisement/index?category=' . $subcategory-
>>getId()), the URL output is /advertisement?category=2
>
> How can I make the URL look like /advertisement/index/category/2 ?
> >
>

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

Reply via email to