This page covers making your module accessible from epesi's built-in menu.
To do that, edit <module_name>Common_0.php and add a menu() method to the <module_name>Common class:
public static function menu() {
return array('Label'=>array());
}
Replace Label with the text you want displayed for your module. The (currently empty) array is the argument list — you can use it to pass values into variables. For example:
public static function menu() {
return array('Label' => array( 'MyVariable' => 'MyValue' ) );
}
Those variables become available in the main module through $_REQUEST[]. In the example above, $_REQUEST['MyVariable'] would contain 'MyValue'.
You can also nest submenus:
public static function menu() {
return array('Test'=>array('__submenu__'=>1,'HelloWorld'=>array()));
}
This creates a Test menu with a Hello World submenu.
Refresh epesi and you should see your new entry in the menu. Selecting it won't show anything yet — the main module class doesn't display anything, so the content panel will appear empty. The next page covers displaying text.