In /course/index.php there is
$courserenderer = $PAGE->get_renderer('core', 'course');
$content = $courserenderer->course_category($categoryid);
so I want to override core_course_renderer in the theme (moove).
I added a renderers.php in the moove theme folder. In is, in its entirety:
<?php
require_once($CFG->dirroot .'/course/renderer.php');
class theme_moove_core_course_renderer extends core_course_renderer {
public function course_category($category) {
return 'i am a banana';
}
}
I expected that when I hit the course index page I'd be told that I am a banana. But I see the standard page. What do I have to do to override this renderer from a theme?