diff --git a/outputhtml.php b/outputhtml.php index 55f5984..06244fd 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -22,7 +22,7 @@ class outputhtml extends output public function out ($data, $title = FALSE, $viewClass = FALSE, $viewMethod = FALSE, $layout = FALSE, $replacement = array(), - $variable = array ()) + $variable = array (), $module = "") { @header("Cache-Control: no-store, no-cache, must-revalidate"); @header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); @@ -33,7 +33,10 @@ class outputhtml extends output $resView = $data; if ($viewClass !== FALSE && $viewMethod !== FALSE) { - require_once ("views/$viewClass.php"); + if ($module !== "") + require_once ("modules/$module/views/$viewClass.php"); + else + require_once ("views/$viewClass.php"); $obj = new $viewClass; $resView = $obj->$viewMethod ($data, $variable); if (is_array ($resView))