Hi all,
I seem to be having a bit of brain fade trying to use the method core_course_renderer::get_category_formatted_description()
However I get the error - Call to undefined method core_course_renderer::get_category_formatted_description() from the course lib.php
The php code is:
$output .= core_course_renderer::get_category_formatted_description($cat->id);The error is:
Error
Exception - Call to undefined method core_course_renderer::get_category_formatted_description()
Debug info:
Error code: generalexceptionmessage
Error code: generalexceptionmessage
Stack trace:
- line 142 of /theme/mytheme/lib.php: Error thrown
- line 49 of /theme/mytheme/layout/frontpage.php: call to theme_horn_getcourses()
- line 1374 of /lib/outputrenderers.php: call to include()
- line 1304 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
- line 100 of /index.php: call to core_renderer->header()
I'm sure I'm missing something obvious but any help greatfully received.
Thanks
Dave