I have a problem with render tag in twig.
I got a message: "You have requested a non-existent service "http". When i use {% render url("render_menu") %}
render_menu route works fine
help me !
P/S: Sorry about my english
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You use a correct way, but with an old version. You should upgrade to fix security issues AND resolve your problem.
A security issue changed the way to use
render: http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-releasedDocumentation has been updated:
http://symfony.com/doc/2.0/book/http_cache.html#using-edge-side-includes