I have added a setting to my config.yml file as such: app.config: contact_email: somebody@gmail.com ... For the life of me, I can’t figure out how to read it into...
I looked around for the code to get the current path in a Twig template (and not the full URL), i.e. I don’t want http://www.sitename.com/page, I only need /page....
I’m aware of questions like this, where people tend to discuss the general Symfony 2 concept of bundle. The thing is, in a specific application, like, for instance, a...
I’m using Doctrine’s QueryBuilder to build a query, and I want to get the total count of results from the query. $repository = $em->getRepository('FooBundle:Foo'); $qb = $repository->createQueryBuilder('n') ->where('n.bar =...
This question already has answers here: Is it .yaml or .yml? (4 answers) Closed 3 years ago. I read them on YAML-wikipedia but not really understood the main difference...
I need to install only 1 package for my SF2 distribution (DoctrineFixtures). When I run php composer.phar update I get - Updating twig/twig (dev-master 39d94fa => v1.13.0) The package...

