Overriding a Renderer 2.0

Overriding a Renderer 2.0

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!

Ngā whakawākanga toharite: -
In reply to Michael Kadin

Re: Overriding a Renderer 2.0

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.

Ngā whakawākanga toharite: -
In reply to Michael Kadin

Re: Overriding a Renderer 2.0

Tim Hunt -
Pikitia o Core developers Pikitia o Documentation writers Pikitia o Particularly helpful Moodlers Pikitia o Peer reviewers Pikitia o 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?

Ngā whakawākanga toharite: -