Posts made by Howard Miller

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

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.

Average of ratings: Useful (2)
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Having done more digging, the only place I can find routing defined (in 4.5) is in user/classes/route/api, so I'm guessing that it's very much work in progress.
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Well, that's more or less what I thought. I was expecting stuff like...

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.
Average of ratings: Useful (1)