Hello, World!
A Hello, World
program is the classic beginner's program in any language. In it, a developer writes code to print out the words Hello, World. It is often the simplest program that can be written in a language and provides a sanity check by proving that a program can be compiled and executed. We are borrowing this concept to create a Hello, World
plugin for Elgg. The plugin creates a web page that displays a greeting. We then add more functionality to it as we explore different parts of Elgg's plugin API. This tutorial introduces you to the following:
Setting up a basic plugin skeleton
Using Elgg's event system
Routing requests for a web page
Creating a new web page
Supporting multiple languages (in developer's slang, I18n or internationalization)
Registering menu items
Creating views that render data into HTML
Note
All the tutorials in this book are written for Elgg 1.8. They will not work on earlier versions of Elgg because they use functions introduced in Elgg 1.8. If any of the plugins...