-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Twig: support namespaced bundle paths #456
Comments
public function viewAction(LandingTemplate $landingTemplate = null, $simple = false)
{
$template = '@MetalProject/Wizzard/landing_page.html.twig'; // ctrl+click doesn't work here
if ($simple) {
$template = '@MetalProject/Wizzard/landing_simple_page.html.twig';
}
} Can you look at this, @Haehnchen please? |
<service id="twig.loader" class="Symfony\Bundle\TwigBundle\Loader\FilesystemLoader">
<tag name="twig.loader"/>
<argument type="service" id="templating.locator"/>
<argument type="service" id="templating.name_parser"/>
<!-- ... -->
<call method="addPath">
<argument>Z:\home\dev\metalloprokat\src\Metal\ProjectBundle/Resources/views</argument>
<argument>MetalProject</argument>
</call>
<!-- ... -->
</service> |
This happens for me in every place where you can define templates, even "regular" ones. /**
* @Template("base.html.twig")
*/ nor the /**
* @Template("@App/base.html.twig")
*/ This used to work in previous versions. Again, this doesn't seem related to #450, as this issue here also happens in regular |
Is there any update on this one, @Haehnchen? This happens for every template in my codebase, as we exclusively use this notation. |
I had a similar issue using a symlink for the base project path. |
http://symfony.com/doc/current/cookbook/templating/namespaced_paths.html
I get "Missing template" for paths like this:
And I would like to configure which style should be used for autocompletion.
The text was updated successfully, but these errors were encountered: