Skip to content
Advertisement

Tag: symfony

api platform – Unable to generate an IRI for the item

I’m starting with API Platform and I’m using the example entity “Foo”: I succesfully see the new Entity in dashboard (See image): API Platform Dhasboard And I had the following error when I try to get all Foo collection: I tried different formats and check the the routes too: It’s possible what I need some special library in my server?

Symfony 3.4 Use view inside my bundle

I’ve some trouble for the configuration of a new repository using Symfony 3.4. I’ve used the symfony command for create him with last LTS (3.4) and I add a new Bundle using command too. My new Bundle is up and work well but I can’t use view stored inside this bundle. I show you the structure of my Bundle :

Enabling php ext-xml?

While trying to use Composer to create a Symfony 4 project I got the following error: I did search in php.ini for ext-xml to see if I could uncomment it in order to enable it but I did not find any mention of ext-xml. I have not searched anywhere else because I am very unsure about what I am doing.

How to disable csrf in symfony?

I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, so what should I do? Answer

symfony @oneToMany relation returns only last object in collection

I have a situation and not really sure what I’m doing wrong. in Sumfony 3.3 I’ve created a relation between entity Page and Language, where Page is related to multiple Languages, and when I search for a Page and get Page object but property Languages returns collection with only last Language object. No matter how many objects are there in

Advertisement