I'm learning how to develop a new theme in moodle (v3.2) and I've got a problem I can't solve.
I followed the Ouput API tutorial (https://docs.moodle.org/dev/Output_API) in order to learn how to create a new renderable, templatable component to add it in my theme directory.
Here is my project tree in my theme (based on boost) :
I can display my page with this url : http://localhost/theme/ebpcooc/admin/tool/demo/index.php
The problem is in the index.php file. This line makes an error raise on my page :
$output = $PAGE->get_renderer('tool_demo');
Error : Invalid component specified in renderer request
I must admit that I haven't still get the point of component name.
I've tried a lot of things ... Do I have to give all the directories to the component : "theme_ebpcooc_admin_tool_demo" ?
Which directories are implicitly added (if any) ? Is it linked to the namespaces ?
How can I get this renderer in order to render my new component ?
This could be basic questions but I didn't find any simple answer for the moment : can you please help me ?
Thanks.