diff --git a/renderer.php b/renderer.php index 95f7b85..7e868c7 100644 --- a/renderer.php +++ b/renderer.php @@ -27,7 +27,9 @@ class renderer $this->output */ public function run () { - require_once ("domframework/outputhtml.php"); + // If the output is not defined in domframework, it will not be loaded but + // without error, it can be loaded by the autoloader + @require_once ("domframework/output$this->output.php"); $class = __NAMESPACE__."\\output$this->output"; $obj = new $class (); $res = call_user_func_array (array ($obj, "out"),