Disclosure: when you buy through links on our site, we may earn an affiliate commission.

How to create a block for Moodle using PHP

Step by step, detailed instructions taking you through the complete process from zero code to functioning block.
4.7
4.7/5
(2 reviews)
35 students
Created by

8.7

CourseMarks Score®

8.1

Freshness

8.7

Feedback

8.8

Content

Platform: Udemy
Video: 1h 25m
Language: English
Next start: On Demand

Table of contents

Description

This course will take you through the complete process of developing a Moodle block. A ‘block’ is a special type of plugin used in Moodle that can be added to pages, dashboards and other display areas in Moodle. A ‘block’ has a unique set of requirements when developing in Moodle that will be covered in this course.
It is highly recommended that you have PHP, HTML, JavaScript and CSS experience before attempting to create a block in Moodle but it is not essential that you have worked in Moodle before.
This course will teach you the basic structure and requirements of a ‘block’, then take you through the actual process of: 
•Creating a fully functioning block
•Adding the core files
•Managing versions
•Adding the access file
•Adding instance configuration options
•Adding global config options
•Adding the language file for the block
•Completing a YouTube playlist RSS reader function to demonstrate the block
The block process is recorded using Moodle 3.9 but the code can be used in Moodle 3.7.2+

You will learn

✓ How to create a ‘block’ in Moodle using PHP
✓ How to setup the folder structure for a ‘block’
✓ How to create configuration options in a ‘block’
✓ How to setup the access file for a ‘block’
✓ How to implement a simple YouTube Playlist view in a ‘block’
✓ How to add global administration settings to a ‘block’
✓ How to implement the language file for a ‘block’

Requirements

• How to program in PHP
• Have access to a development environment with PHP and Moodle installed
• Have a basic understanding of Moodle and how it is used

This course is for

• Moodle developers and administrators with PHP skills
CEO at Ricoshae Pty Ltd | Education technology developer
Chris runs a web application development company called Ricoshae Pty Ltd. Ricoshae develops advanced business web application and integrated mobile apps for government and education organisations in both Australia and Europe. 
Chris is also an online education technology specialist with over 15 years supporting large education organisations online platforms and technology.
Browse all courses by on Coursemarks.
Platform: Udemy
Video: 1h 25m
Language: English
Next start: On Demand

Students are also interested in