N
N
Nick Bukovskiy2017-04-04 19:19:55
symfony
Nick Bukovskiy, 2017-04-04 19:19:55

What should a get request look like when using the symfony route?

What should look like get with routing? My path is: example.dev/exam
There is no ".php" at the end of the path. And example.dev/exam?id=1 is, as I understand it, not true. What kind of link should have a get request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2017-04-04
@skobkin

Any. Routing is about example.dev/some/your/routing/rules. A ?id=1- these are the query parameters that you parse in the action. The first is the path to the resource. The second is any data that needs to be passed to this resource.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question