diff --git a/outputhtml.php b/outputhtml.php
index 7ad3214..ac36be8 100644
--- a/outputhtml.php
+++ b/outputhtml.php
@@ -30,9 +30,9 @@ class outputhtml extends output
$resView = $data;
if ($viewClass !== FALSE && $viewMethod !== FALSE)
{
- require ("views/$viewClass.php");
- $reflection = new ReflectionMethod ($viewClass, $viewMethod);
- $resView = $reflection->invokeArgs (new $viewClass, array ($data));
+ require_once ("views/$viewClass.php");
+ $obj = new $viewClass;
+ $resView = $obj->$viewMethod ($data);
}
if ($layout !== FALSE)