N°2847 - Start rework of the CSS/JS/TWIG files structure

This commit is contained in:
Molkobain
2020-06-22 16:56:52 +02:00
parent e37c620d2d
commit 7d4455baf4
20 changed files with 82 additions and 1 deletions

View File

@@ -224,7 +224,7 @@ class LoginTwigRenderer
}
$oCoreLoader = new Twig_Loader_Filesystem(array(), APPROOT.'templates');
$aCoreTemplatesPaths = array('login', 'login/password');
$aCoreTemplatesPaths = array('pages/login', 'pages/login/password');
// Having this path declared after the plugins let the plugins replace the core templates
$oCoreLoader->setPaths($aCoreTemplatesPaths);
// Having the core templates accessible within a different namespace offer the possibility to extend them while replacing them