<p dir="auto">By following the Templates section on <a href="http://symfony.com/doc/download-best-practices-book/" rel="nofollow">Best Practices book</a>, I should have the following code in my controller:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function indexAction()
{
    return $this-&gt;render('default/index.html.twig');
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">indexAction</span>()
{
    <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">render</span>(<span class="pl-s">'default/index.html.twig'</span>);
}</pre></div>
<p dir="auto">This throw the following exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Template name &quot;default/index.html.twig&quot; is not valid (format is &quot;bundle:section:template.format.engine&quot;)."><pre class="notranslate"><code class="notranslate">Template name "default/index.html.twig" is not valid (format is "bundle:section:template.format.engine").
</code></pre></div>
<p dir="auto">I'm using <code class="notranslate">"symfony/symfony": "2.6.*"</code>.</p>
<p dir="auto">I think the template path validator should be reviewed, isn't it ?</p>
<p dir="auto">Thanks.</p>
<p dir="auto">Hello,</p>
<p dir="auto">I have update to 2.1.5... and now in all my translated site i heve this error:</p>
<p dir="auto">An exception has been thrown during the rendering of a template ("[ERROR 94] Validation failed: no DTD found ! (in n/a - line 2, column 21)<br>
[ERROR 1877] Element '{urn:oasis:names:tc:xliff:document:1.2}trans-unit': Duplicate key-sequence ['19'] in key identity-constraint '{urn:oasis:names:tc:xliff:document:1.2}K_unit_id'.</p>
<p dir="auto">Everything worked fine until now....</p>
<p dir="auto">Along also an example of a file which use xliff:</p>
<p dir="auto"><code class="notranslate">&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"&gt; &lt;file source-language="en" datatype="plaintext" original="file.ext"&gt; &lt;body&gt; &lt;trans-unit id="1"&gt; &lt;source&gt;Gallery&lt;/source&gt; &lt;target&gt;Galeria&lt;/target&gt; &lt;/trans-unit&gt; &lt;trans-unit id="2"&gt; &lt;source&gt;Mustamp&lt;/source&gt; &lt;target&gt;Mustamp&lt;/target&gt; &lt;/trans-unit&gt; &lt;trans-unit id="3"&gt; &lt;source&gt;Highlights&lt;/source&gt; &lt;target&gt;Destaques&lt;/target&gt; &lt;/trans-unit&gt; &lt;trans-unit id="4"&gt; &lt;source&gt;HIGHLIGHTS&lt;/source&gt; &lt;target&gt;DESTAQUES&lt;/target&gt; &lt;/trans-unit&gt; &lt;/body&gt; &lt;/file&gt; &lt;/xliff&gt;</code></p>
<p dir="auto">Probably'm doing something wrong, can you help me?</p>
<p dir="auto">Thanks in advance,</p>
<p dir="auto">Paulo</p>