From 92a0fd86342be63260fe70c9308dbed0873e819c Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 22 Feb 2016 08:33:23 +0000 Subject: [PATCH] route : Pass to renderer the information concerning the routing and the exception git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2516 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- route.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/route.php b/route.php index d64ae38..dda7c7c 100644 --- a/route.php +++ b/route.php @@ -536,7 +536,11 @@ class route $renderer->viewClass = $this->viewClass; $renderer->viewMethod = $this->viewMethod; $renderer->layout = $this->layout; - $renderer->replacement = $this->replacement; + $renderer->replacement = array_merge ($this->replacement, + array ("{exceptionCode}"=>$getCode, + "{exceptionText}"=>$http->codetext($getCode), + "{baseurl}"=>$this->baseURL(), + "{baseurlmodule}"=>$this->baseURLmodule())); $renderer->variable = $this->variable; $renderer->run (); exit;