I am intergrating the twig templating engine into a PHP application. In particular, I would like to use the twig engine to render forms. Having had a look at how symfony2 uses twig to render form widgets, they have a huge template file which contains all the widgets like so: The question I have is how can I “grab” blocks
Tag: symfony
Ajax and Jquery in Symfony
I’m a beginner in Symfony (version 2), I have a project achieved with plain basic PHP, and now I’m redoing my pages in dealing with Symfony framework, and arrived to my jquery ajax functions, surely, …
How to select distinct query using symfony2 doctrine query builder?
I have this symfony code where it retrieves all the categories related to a blog section on my project: This works, but the query includes duplicates: I want to use the DISTINCT command in my query. The only examples I have seen require me to write raw SQL. I want to avoid this as much as possible as I am