diff --git a/core/lib/Thelia/Core/Template/Parser.php b/core/lib/Thelia/Core/Template/Parser.php index b5703b51f..9cffd2cc6 100644 --- a/core/lib/Thelia/Core/Template/Parser.php +++ b/core/lib/Thelia/Core/Template/Parser.php @@ -131,8 +131,6 @@ class Parser implements ParserInterface { $this->loadParser(); - echo \Thelia\Model\ConfigQuery::read("alfred", "dupont"); - return $this->content; } @@ -176,7 +174,7 @@ class Parser implements ParserInterface $this->tpex->init($this->container->get("request"), $this->container->get("dispatcher"), $content, THELIA_TEMPLATE_DIR . rtrim($this->template, "/") . "/"); $this->tpex->setLogger(Tlog::getInstance()); - $this->tpex->execute(); + $this->setContent($this->tpex->execute()); } protected function openFile(Request $request) diff --git a/templates/default/index.html b/templates/default/index.html index 6bd86f28f..01e72c0a3 100644 --- a/templates/default/index.html +++ b/templates/default/index.html @@ -9,6 +9,8 @@ and open the template in the editor. -
TODO write content
+
TODO write content + #INCLUDE "include1.html" +