/** * Display, this wil output the template to the browser * If no template is specified we build the path form the current module and action * * @return void * @param string[optional] $template The template to use, if not provided it will be based on the action. */ public function display($template = null) { // parse header $this->header->parse(); // if no template is specified, we have to build the path ourself // the default template is based on the name of the current action if ($template === null) { $template = BACKEND_MODULE_PATH . '/layout/templates/' . $this->URL->getAction() . '.tpl'; } // display $this->tpl->display($template); }