Skip to content
Advertisement

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 :: class in the Symfony update, but the feature doesn’t work and all the data is displayed. I am seeking advice.

Code

BrandSerachType.php

JavaScript

BrandController.php

JavaScript

Services.yml

JavaScript

index.html.twig

JavaScript

Version Cent OS 6.7 PHP 5.6 Symfony3.0.9

Advertisement

Answer

Usually I set hidden type like this, try, maybe it helps you:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement