Skip to content
Advertisement

Tag: symfony

How to add options to a Symfony Form field?

I am rather new to PHP & Symfony, and am struggling with the form options: I have the following, simple code: I get an error because the format is not an option of TextType, but I cannot find a way to add my own options (But I know this is possible, from the others posts I read) I have read

How send Id to my view in redictionRoute Symfony

(Sorry for my english) I’m making a subscribe system (the flush is ok in database) than: My Route of redirection needs an Id How can I send this id to the redirection ? I tried to play with the user object but no success Answer Try this Or (PHP < 5.4) Symfony should then load the User with that ID

Entity not found with Symfony 5.1

I have an issue with an Entity. The goal is to display a Form which the user can use to change his personal information like the Email or password. I created a form for that, but when I created the /Edit Route I get the following error: “AppEntityUsers object not found by the @ParamConverter annotation.” Here’s my Controller: Here’s the

get PHP function (Symfony 4.2)

I have the following error that I do not understand: “Attempted to call function “pasPointer” from namespace “AppController”.” The code that goes with it: public …

Shopware 5.6 override class method

I want to override method ajaxAddArticleCartAction in engine/Shopware/Controllers/Frontend/Checkout.php, cuz i want a bit complicated logic on accessories quantity calculation. My question is: Is it possible to override this method in my custom plugin. With other words, if i add product in cart, i want to use my function (in plugin), not the Shopware one. Thanks a lot! Answer Yes that

Advertisement