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
This commit is contained in:
2016-02-22 08:33:23 +00:00
parent 38e4a43346
commit 92a0fd8634

View File

@@ -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;