简体   繁体   English

无法找到模板AcmeDemoBundle:演示:使用PHPed进行调试时的hello.html.twig Symfony 2

[英]Unable to find template AcmeDemoBundle:Demo:hello.html.twig Symfony 2 while debugging using PHPed

I have installed Symfony 2 onto a virtual Linux server. 我已将Symfony 2安装到虚拟Linux服务器上。 I use Windows and PHPED to work and debug my Symfony 2 project. 我使用Windows和PHPED来工作和调试我的Symfony 2项目。 I have not configured anything on symfony 2, I debug the hello world example via using PHPEDs debug browser plugin. 我没有在symfony 2上配置任何东西,我通过使用PHPEDs调试浏览器插件调试hello world示例。

Everything works fine apart from when it hits Twig/Loader/Filesystem.php on line 202 and cant find the following file "AcmeDemoBundle:Demo:hello.html.twig" in Resources/views folder. 除了在第202行遇到Twig / Loader / Filesystem.php并且无法在Resources / views文件夹中找到以下文件“AcmeDemoBundle:Demo:hello.html.twig”之外,一切正常。 There is a file hello.html.twig which I think is the file it is trying to find. 有一个文件hello.html.twig,我认为它是它试图找到的文件。

The file should be at this location 该文件应位于此位置

src/Acme/DemoBundle/Resources/views/Demo/hello.html.twig

Source: http://symfony.com/doc/current/quick_tour/the_big_picture.html#templates 资料来源: http//symfony.com/doc/current/quick_tour/the_big_picture.html#templates

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM