implement including method resolving #INCLUDE tag
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -9,6 +9,8 @@ and open the template in the editor.
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
<body>
|
||||
<div>TODO write content</div>
|
||||
<div>TODO write content
|
||||
#INCLUDE "include1.html"
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user