Skip to main content

Questions tagged [symfony2]

Symfony2 is an open source PHP web development framework for PHP 5.3.9+ focusing on easy and fast development cycles and including state-of-the-art design patterns and programming philosophies. Symfony should not be confused with Symphony CMS

1 vote
0 answers
715 views

I've been in an interview some time ago. They objected my Symfony API code with following line: Too much code in controller actions. Can be moved to services to keep the business logic apart from ...
EresDev's user avatar
  • 121
2 votes
1 answer
151 views

I have made a contract renewal system in Symfony and Doctrine, and it works, but I think it can be improved, but I make too many requests to the database. These are my models: ...
jcarlosweb's user avatar
5 votes
1 answer
100 views

I wrote a very simple quick and easy script to migrate a bunch of data to another table in my database. Can I accomplish this task without using so many foreach loops? I realize I'm imputting ...
GrumpyNewHow's user avatar
2 votes
1 answer
541 views

I've written a Controller and a corresponding Action for a Symfony 2.8 project, that does the following: handles a list of favorite items of a user the ids of the favorites are stored in the session ...
lampshade's user avatar
  • 255
3 votes
1 answer
246 views

In my web-app, it is possible to delete an Item when visiting any of 4 different pages: the Show Item page the Edit Item page the List Items page the List Items in Room page If the visitor uses a ...
dnagirl's user avatar
  • 163
2 votes
1 answer
982 views

I'm trying to generate a report from two doctrine entities. The fields to filter the report are optional. This is the code I've got now and it looks really bad to me. How can I improve this? ...
Bob's user avatar
  • 21
0 votes
1 answer
106 views

I want to make post editing on my blog. I get data from a form and want to put it into a database. I'm not sure if using setters is the best way, so maybe you can show me better solution? ...
user112006's user avatar
1 vote
1 answer
2k views

I have started to implement cross site scripting prevention (xss) within my code. However as I am using symfony for this particular project I have read up that nothing needs to be done for xss in ...
mp252's user avatar
  • 507
4 votes
1 answer
1k views

I made a routing system for PHP inspired by Symfony's router composed of a few classes. First I am using Symfony's HTTP Foundations component. Then, I am emulating the classes in the routing component ...
Viktorija Spasenovska's user avatar
2 votes
2 answers
825 views

I have the following code in a Symfony site that validates a user's credentials and logs them in via the Session class: ...
Robert Calove's user avatar
4 votes
1 answer
216 views

In my Symfony (v2.7.9) project I have a set of entities which share some view functionality i.e being displayed in a table with some of their values as columns. Following the separation of concerns ...
Andy's user avatar
  • 155
5 votes
3 answers
250 views

I have a table post with a many-to-many relationship with the tag and product tables. ...
Max Lipsky's user avatar
2 votes
1 answer
828 views

I'm at the point where I am happy with the functionality of my code but I dislike how its written. It seems like I can be more modular with it but I can't seem to figure out how to improve on it ...
Joshua Dalley's user avatar
4 votes
1 answer
86 views

I have created an app in which URLs stored in a database are pinged via curl to check their availability and the database is updated with the results. Two tables are updated with each fresh ping of a ...
jmack's user avatar
  • 43
2 votes
1 answer
121 views

I have an action that does two things: It sends a chain of commands, and gets the response from an external API that we call wrapper. It logs the chain of commands ...
Parham Doustdar's user avatar

15 30 50 per page