Damyon Wiese commented on a post on Blogger.
Hi Mike, thanks for starting on these tutorials - they are very helpful for the community.

One thing I noticed is that initially you put the "mod_questionnaire_renderer" in /classes/output/. This is not correct and only works because of a side-effect. Non-namespaced classes can only exist in the /classes/ folder for autoloading to work. It works in this case only because the renderer code looks for the namespaced version of the class first - which causes the file /classes/output/renderer.php to be "read" - but when looking only for mod_questionnaire_renderer the class loader will only check for "/classes/renderer.php" (This would fail e.g. if someone tried to extend your class).
Shared publiclyView activity