Howard Miller
Posts made by Howard Miller
namespace level1\level2\level3;I'd never heard it described like that)
Can I draw your attention to - https://moodle.org/mod/forum/discuss.php?d=468263
Three of us in that forum and a couple of my colleagues here have tried to get it to work with zero success. There are no helpful error messages, so I'm a bit stuck.
I've been trying to read how it works / what it does and I'm getting a bit worried. Referring to https://moodledev.io/docs/5.0/apis/subsystems/routing...
"Routes are defined by creating classes within the route L2 namespace of a component, and associating methods with the \core\router\route attribute. Routes have a Route group identified by the L3 namespace, for example api. Unknown route groups are ignored."
I haven't a glimmer what any of that means. If we're going to get this arcane (for want of a better word) then maybe the docs need to be a bit gentler.
I don't mind being stupid - there's always more to learn but I have a feeling that we are exploring the difficult end of PHP.
https://my.site/course/3 to get me to course with id=3, but I just get an exception.
However, I don't mind being the stupid guy. https://moodle.org/mod/forum/discuss.php?d=468284
Hopefully somebody who understands this better can give us a bit of insight. This has got "near unsupportable" status at the moment, I think.