Top "Symfony" questions

Symfony refers to both a PHP framework for building web applications as well as a set of components on which the framework is built.

Use Javascript to access a variable passed through Twig

I have a controller that passes an array to a twig template, which I want to use in a script …

php javascript symfony twig
PDO_SQLITE driver not present.. what to do?

I see everywhere (including on the official docs) that the PDO_SQLITE driver is/should be included by default in …

php ubuntu symfony php-extension
Problems with lib-icu dependency when installing Symfony 2.3.x via Composer

I've had no problems installing Symfony 2.2.x using Composer, I've always just copied the stable version at http://symfony.com/…

php symfony composer-php
Symfony 2 - Working with assets

I need some tips on how to work with assets in Symfony 2. For example, do we have to always perform …

symfony twig assetic
Symfony error The class XXX was not found in the chain configured namespaces XXX

There are some other questions on this subject already, but none of them were really helpful. I am new to …

php symfony doctrine
Doctrine array vs simple_array vs json_array

I am using symfony and doctrine as my ORM. For available types I have: array simple_array json_array I …

php arrays symfony doctrine-orm
webpack: Cannot read property 'match' of undefined

I have installed webpack (Symfony encore) using npm as follows: sudo npm install -g @symfony/webpack-encore --save-dev I ran this …

symfony npm webpack webpack-encore
How to handle Translation in twig file using variables?

I have a twig file and a yml, in which I define the variables for translation e.g.: YML File …

symfony translation twig code-translation bundles
How can I select specific Columns with createQueryBuilder in Doctrine ORM?

I'm using Doctrine createQueryBuilder() to construct queries in Symfony2. But, I don't want to take all columns in this entity. …

php symfony orm query-builder
Passing data to buildForm() in Symfony 2.8, 3.0 and above

My application currently passes data to my form type using the constructor, as recommended in this answer. However the Symfony 2.8 …

php symfony