Parameters vs variables #24

Open
opened 2025-09-18 12:37:56 +07:00 by Arsen Mirzaev Tatyano-Muradovich · 0 comments

What if we have an HTTP parameter and a variable obtained from a URN with the same name?

Currently, the URN variable takes precedence, which OVERWRITES the HTTP parameter!

That is, if we pass a POST $identifier and create a route like this:
image.png

then the $identifier from the route will overwrite the POST $identifier.

The result of combining them is sent to the controller method as named arguments.

core.php row 130
image.png

What if we have an HTTP parameter and a variable obtained from a URN with the same name? Currently, the URN variable takes precedence, which OVERWRITES the HTTP parameter! That is, if we pass a POST $identifier and create a route like this: <img width="647" alt="image.png" src="attachments/405a4bf4-1b19-4a33-9e60-06b7129f24c0"> then the $identifier from the route will overwrite the POST $identifier. The result of combining them is sent to the controller method as named arguments. core.php row 130 <img width="567" alt="image.png" src="attachments/d28ca92f-73a8-4b28-8eef-d605780eb885">
Arsen Mirzaev Tatyano-Muradovich added the
Important
Error
Status
Confirmed
labels 2025-09-18 12:37:56 +07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mirzaev/minimal#24
No description provided.