GET variables and nice URL link

Notice: This thread is very old.
dhosek
Member | 12
+
0
-

Hello community, I got for example this URL:

http://example.com/Page/Subpage/?sort=desc&?lang=eng

How can I transform this page into?:

http://example.com/Page/Subpage/desc/eng

I was reading Nette articles about routing, but I don't understand it much.
Thank you for helping. I'm mainly a C#,Javascript and classic PHP developer, but Nowadays I need to learn Nette.

Regards, Daniele.

Last edited by dhosek (2015-07-11 13:47)

Filip Procházka
Moderator | 4668
+
0
-
$router[] = new Route('/Page/Subpage/<sort (asc|desc)>/<locale (cs|en)>')

Also, it's better to use ISO 639–1, most translators use it.