Category : symfony4

After updating from Symfony 2.X to Symfony 4.4 and verifying the operation, I found that Twig does not recognize modal. Since it does not recognize modal, it will be displayed even when the code that is not displayed in modal in the if statement is displayed in modal. When I tried "if modal is empty", ..

Read more

I’m using Symfony 4.4.10 and I do have problem with correct error 4xx/5xx handling to get users to my custom html. On production, when 500 error occurs, I’m getting this kind of screen: Which is weird, because I followed this tutorial: https://symfony.com/doc/current/controller/error_pages.html I have my templates overridden (like here), but still above screen occurs. (adding ..

Read more

I am having issues overriding a label in my form in my Symfony 4.4 application: {{ form_row(form.legal, { ‘label’ : ‘personal.form.fields.legal’|trans }) }} personal.form.fields.legal looks like this: I agree that I am 18 and above, I have read and accept the <a href="/terms-cond">T&Cs</a> My form definition: ->add(‘legal’, CheckboxType::class, ‘required’ => true, ‘mapped’ => false, ]) ..

Read more