Overriding a Renderer 2.0

Overriding a Renderer 2.0

by Michael Kadin -
Number of replies: 3

Hi folks,

I'm new to Moodle development so I apologize if this post belongs in a different forum.  I've gone through the steps here for overriding a renderer, but I can't seem to get it to work.  I've tried to follow the steps exactly.  Attached is a zip file of the theme I used to test it...anyone have a chance to find what I'm missing.

Thanks!

Average of ratings: -
In reply to Michael Kadin

Re: Overriding a Renderer 2.0

by Michael Kadin -

I figured the problem out for those interested. The renderers file within your theme must be called 'renderers.php'.  I had it named 'renderer.php'  Silly me.

In reply to Michael Kadin

Re: Overriding a Renderer 2.0

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I've seen that mistake before. It must almost be worth, when developer debug is on, making the code check for this mistake, and output a helpful error messages. Anyone want to code that?