A creuser mais peut-être pas besoin de TemplateSwitcher et de CustomSwitchTemplate, et qu'il suffirait de rajouter juste du Smarty dans layout.tpl et index.html
12 lines
509 B
XML
12 lines
509 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<routes xmlns="http://symfony.com/schema/routing"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
|
|
|
|
<route id="templateswitcher.set" path="/ts/{templateName}">
|
|
<default key="_controller">TemplateSwitcher\Controller\SwitcherController::set</default>
|
|
<requirement key="templateName">.*</requirement>
|
|
</route>
|
|
</routes>
|