Open gharlan opened 9 years ago
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?
@MetalProject
what is the pathname of this alias? is it a compiled xml path, some xml example?
possible related #450, #429
<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>
@Koc your issue is phpstorm9 eap related see #450 for updates
This happens for me in every place where you can define templates, even "regular" ones.
Only the x:y:z
syntax works, so no direct templates
/**
* @Template("base.html.twig")
*/
nor the @
namespaced syntax
/**
* @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 @Template
annotations and ->render()
calls.
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. Closing the project and opening with a direct path solved the issue for me Hope it helps
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.