<p dir="auto">Hi guys,</p>
<p dir="auto">There seems to be an issue with the way Twig load templates. I know it has been mentioned in the tread below that this is related to the fact that you must follow the naming convention name.format.engine.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2884438" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3150" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/3150/hovercard" href="https://github.com/symfony/symfony/issues/3150">#3150</a></p>
<p dir="auto">However, the stand alone version of Twig doesn't trigger the same issue. I can for instance name the template <b>flash.en.twig</b> and it will find it no problem. <b>If the loading issue is related to a "format" exception, then it shouldn't allow formats that are invalid IMO</b>. Therefore, an appropriate exception message should be put in place (I will share the fix once I'm done).</p>
<p dir="auto">The error I get:<br>
Unable to find template "FiveTeaserBundle:Flash:flashs.twig".<br>
/Users/simon/Projects/Five/Poison14.com/www/src/Five/TeaserBundle/Resources/views/Flash/flashs.twig</p>
<p dir="auto">My Controller Method</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    public function showNoFlashAction()
    {
        return $this-&gt;render( 'FiveTeaserBundle:Flash:flash.twig' );
    } "><pre class="notranslate"><code class="notranslate">    public function showNoFlashAction()
    {
        return $this-&gt;render( 'FiveTeaserBundle:Flash:flash.twig' );
    } 
</code></pre></div>
<p dir="auto">At the end of the day, I know SF2 is FREE and I really admire all the efforts and time that have been put together.<br>
Anyhow, I just wanted to point it out as other people might be wasting a lot of time around this.</p>
<p dir="auto"><b>Thumbs up for the awesome work! :-)</b></p>
<p dir="auto">Thanks,<br>
Simon</p>