Hello,
I'm starting building a new theme. I'm fairly new to Moodle. I had read a lot about it without trying it.
So now, i'm into it. Question :
I have created a generic function in lib.php which I need in : lib.php (for custom $THEME->csspostprocess) and in settings.php to generate settings.
My understand was that lib.php was including in each request, so my functions would have been accessible in settings.php. But they are not. I have undefine_functions error.
If I do require_once("$CFG->dirroot/theme/solerni/lib.php"), it works.
So, why is that my lib.php isn't included in settings.php (or called after it) ?
Maybe I don't get yet how the differents pages and functions are loaded in Moodle (or if maybe my function is accessible via a global object ?).
If someone experienced could help me understand...
Regards
Simon