Timeline for Accessing named parameter in custom route from within a controller
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 1, 2019 at 13:29 | answer | added | foamcow | timeline score: 1 | |
Oct 1, 2019 at 12:14 | comment | added | foamcow | I could do that, yes. Was more curious as to if it were possible. I would prefer to keep the "nice" url without parameters. | |
Oct 1, 2019 at 12:08 | comment | added | Eternal Black |
If this is possible to you, you could instead use an endpoint like my-account/orders/<order>?action=pause and access the pause via $param = Craft::$app->getRequest()->getParam('action'); Might be an easier solution.
|
|
Oct 1, 2019 at 11:59 | history | asked | foamcow | CC BY-SA 4.0 |