June 2017
Beginner to intermediate
368 pages
8h 31m
English
In Eclipse, open the courses_available folder and add a new PHP script called renderer.php:

The renderer needs to extend plugin_renderer_base, and contain whatever code is necessary to output the block's HTML. When creating a new renderer, it is important to implement separate functions for each of the elements we need to display onscreen. That way it is easy for a theme to extend/enhance/replace any individual element. The following is a screen grab of the block:

There are three basic elements we should implement ...
Read now
Unlock full access