Simplify outputhtml.php (Removing the Reflexion). Use a require_once instead of require
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1249 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user