Template Class
The template class is a singleton with a handful of useful building utilities.
// Append to lists:
Template::debug("string");
Template::error("string");
These two lists will be parsed after handleAction() is done in the module. It'll magically parse and show up (if debugging is enabled it will output, if not it will just be thrown away) If error has values, an error template will be shown with the values of these.
// Add to the siteMenu
Template::addSiteMenu("title", "url", "weight");
Weight is where it goes, the lower the number the higher up the list it is. This will be parsed later, any values with the same weight will be sorted alphabetically.
// Add to module menu
Template::addModuleMenu("title", "url", "weight");
Same thing applies here, only this is for module specific menu.
more later