缓存清除后,php无法找到文件
This is so bizarre... I'm using Symfony 2.8. My login page was showing normally. I clear the cache:
php app/console cache:clear
And now twig
can't find the login.html.twig
anymore, which I haven't moved!
Warning: file_get_contents(/Users/nacho/Documents/Symfony/docker-symfony/symfony/
vendor/friendsofsymfony/user-bundle/Resources/views/Security/login.html.twig):
failed to open stream: No such file or directory
I am sure the path is correct: I haven't moved the file and the paths are identical.
I've seen this great answer, but it doesn't seem to apply to my situation. Any ideas?
这太奇怪了......我正在使用Symfony 2.8。 我的登录页面正常显示。 我清除了缓存: p>
php app / console cache:clear
code> pre>
现在 twig 再也找不到 login.html.twig code>了,我没有动过! p>
警告:file_get_contents(/ Users / nacho / Documents / Symfony / docker-symfony / symfony /
vendor / friendsofsymfony / user-bundle / Resources / views / Security / login.html.twig):
无法打开流:没有这样的文件或目录
code > pre>
我确定路径是正确的:我没有移动文件,路径是相同的。 p>
我见过这个很棒的答案,但似乎并不适用 对我的情况。 有什么想法吗? p>
div>
Had the same problem today. "composer update" did it for me.