Change all the "new class" by "new Class"
This commit is contained in:
@@ -35,7 +35,7 @@ class Renderer
|
||||
// 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";
|
||||
$class = __NAMESPACE__."\\Output$this->output";
|
||||
$obj = new $class ();
|
||||
$res = call_user_func_array (array ($obj, "out"),
|
||||
array ($this->result, $this->title,
|
||||
@@ -119,7 +119,7 @@ class Renderer
|
||||
if ($layoutfile !== false && ! file_exists ($layoutfile))
|
||||
throw new \Exception ("Layout file $layoutfile not found", 500);
|
||||
if ($route === null)
|
||||
$route = new route ();
|
||||
$route = new Route ();
|
||||
// Return a $dataflash with the displayed flash in Bootstrap
|
||||
$dataflash = "";
|
||||
if (isset ($_SESSION["renderer"]["flash"]))
|
||||
@@ -158,7 +158,7 @@ class Renderer
|
||||
unset ($_SESSION["renderer"]["flash"]);
|
||||
}
|
||||
|
||||
$html = new outputhtml ();
|
||||
$html = new Outputhtml ();
|
||||
$replacement = array_merge ($replacement,
|
||||
array ("{baseurl}"=>$route->baseURL (),
|
||||
"{baseurlresource}"=>$route->baseURLresource (),
|
||||
|
||||
Reference in New Issue
Block a user