diff --git a/webapp/index.php b/webapp/index.php index f06f3d1a..cfd7b57f 100644 --- a/webapp/index.php +++ b/webapp/index.php @@ -27,7 +27,7 @@ try{ $c = $_REQUEST['c']; $a = $_REQUEST['a']; $classname = $c .'Controller'; - $obj = eval('return (new $classname())->$a();'); + $obj = eval('$obj = new $classname(); $obj->handlePre(); $obj->$a(); $obj->handlePost();'); } catch (Exception $e){ echo($e); }