With the menu entry in place, the next step is to make your module actually print something. Edit <module_name>_0.php and add a print() call to the body() function, so the file looks like this:
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden'); // This is a security feature
class Test_MyModule extends Module {
public function body(){ // Here you will place the main code for the module
print('Hello world!');
}
}
?>
Select your module's entry from the menu, and the text you printed should appear in epesi's main content panel.
You can print any HTML you like from body(). Depending on the active theme, the space available may be limited. Be careful about closing tags improperly — mismatched or stray closing tags near the start of the module's output can break the surrounding framework layout.
Two other important pieces come into play once you're writing real modules: Translations and Templates. If this is your first test module, though, just continue to the next page of this tutorial.