Skip to content

Tag: symfony

Symfony3: Correspondence of key value reversal in Choice Type

I’m updating Symfony. When I upgraded to Symfony3, all the “State.” Names displayed on the form changed to numbers. All state values are set in services.yml. By reversing the yml value, the display in the browser was restored, but when I tried to save the value selected in the pull-down in t…

Unable to find template error in Symfony 3.4

When I upgraded the system running Symfony3.0 to version 3.4, the following error occured. I’ve tried php bin/console debug:router php bin/console debug:twig , but the routing doesn’t seem to be a problem. What else should I consider? Error Code Code Controller.php routing.yml config.yml index.htm…

Where is the preload.php file, and how is it generated?

With Symfony 5.1 and PHP 7.4, I want to add preload.php in opcache. Symfony documentation : During container compilation (e.g. when running the cache:clear command), Symfony generates a file called preload.php in the config/ directory with the list of classes to preload. opcache.preload=/path/to/project/confi…

Hidden no longer works with symfony update

Currently, I am updating the system running on the existing Symfony 2.3 (currently 3.0.9), and I am verifying the operation. HiddenType is used for the function that when you select a value in the search form, only the data that is the status is displayed. I changed from ‘hidden’ toHiddenType :: c…