Category: display

Symfony : Do not know how to display algolia searchbar

I followed the algolia guide on how to implement a searchbar on a symfony project. https://www.algolia.com/doc/framework-integration/symfony/getting-started/algolia-searchbundle/?language=php What I’ve done ? installed algolia bundle with composer require algolia/search-bundle:4.0.0 enable bundle in bundles.php added API ID and API KEY in .env configured…

Symfony – FormType – set field display:none by default

in my formType on Symfony I try to hide a default field. So I did like this: ->add(‘amountReduction’, NumberType::class, [ “required” => false, “label” => “Montant de la r├ęduction”, “attr” => [ “style” => “width: 200px; display: none;” ], ])…