Hello,
I have created a Fordson child theme and now trying to override course_renderer class with maintaining some of the functions already overriden in the Fordson theme.
Fordson theme has overriden core_course_renderer in the theme\fordson\classes\output\core\course_renderer.php and I am trying to override its course_renderer in the theme\fordsonupdated\classes\output\core\course_renderer.php.
I tried this:
class theme_fordsonupdated_course_renderer extends theme_fordson_course_renderer
and this:
class course_renderer extends \theme_fordson\output\core\course_renderer
but both times received an error:
Fatal error: Class 'theme_fordson\output\core\theme_fordson_course_renderer' not found in /usr/share/nginx/test.elearning.hr/theme/fordsonupdated/classes/output/core/course_renderer.php on line 46
I have tried several other versions, but without success. I suppose I am not using namespaces correctly, but currently I am stucked here, and would appreciate any help.
Thanks.