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", ..
Tag : symfony4
When I was verifying the operation of the app that was updated from Symfony 2.x to Symfony 4.4, the following error occurred. The function I was verifying was to enter the id "!" To be validated and verify that the validation works correctly. Half-width alphanumeric characters, underscores (_), hyphens (-), and dots (.) Can be ..
In my Symfony 4.4 project I have entity field defined: /** * * @ORMColumn(type="string", length=255, options={"default":""}) */ protected $name = ”; I want to set a property property to the empty string ”, and not to null. When I have name filed already set and I want to revert it back to empty string how ..
When I checked the operation of the app updated to Symfony 2.x-> Symfony 4.4, I found that the validation was not working well. Even if the validation is set, even if you enter a value that is flipped by validation, it will not be flipped and will be saved. Are there any changes in these ..
I have an entity Book and it has too many relations with other entities. now I want to sort a COUNT column of one of many to many relation properties and I use this approach Doctrine2 order by count many to many Doctrine2, get entities ordered by a count of a many to many properties ..

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 ..
I am using Codeception PHP Testing Framework v4.1.19, with symfony V4 I want to test my SOAP WebService But when i configure api.suite.yml, i have this mistake, with this cmd "vendorbincodecept build" My mistake I put the good endpoint ( when i am going to this URL, i have my XML…) Here my api.suite.yml actor: ..
When I submitted the form with the smyfony4 app, I got the following error. Since it is an error of the entire form, it is not possible to identify the cause. I want to debug the value of the submitted form. What should I do? I’m sorry for the question like a beginner. Error shop ..
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, ]) ..
I’m building a website with Symfony 4 which is a PHP framework and have one slight problem, the routing URLs are case sensitive for example https://localhost/MySite/ works but any other variation of this such as https://localhost/MySiTe doesn’t work and returns a routing error, how do I make the routing URLs case insensitive? Can this be ..
Recent Comments