Questions tagged as 'symfony'

0
answers

Symfony, hide fields in a Type form

Good, I have an entity that is Users and another that is Cars, in the entities I have since 1 User can have N Cars, I have the relationship onetomany and manytoone respectively. Then I have created the type forms of both, where you can create...
asked by 03.02.2018 / 19:19
2
answers

Blueimp - fileupload. upload many stored images

Hello community, I have the following problem with blueimp fileupload . I want to upload a single image to the server. But when I select in the input type file several times and select different images I receive all those images as if it...
asked by 29.01.2018 / 15:11
0
answers

Synfony 3.3 retora null when selecting with Choicetype in Form

I'm having a little problem with Synfony 3.3, since I'm creating a form with choicetype, and I pass an array to it. When selecting and submitting, I try to create an object with the data of the form, but in my case it is returning null of the fi...
asked by 27.01.2018 / 21:01
2
answers

Prevent URL access to the "app" directory in Symfony 3.3

I have been with Symfony for a short time and I am developing an application. Everything works perfectly but I realized that I can access the configuration files located in "app / config" just by putting the path in the browser (for example,...
asked by 11.01.2018 / 12:41
1
answer

Map an entity in symfony 4

Quetal, I have a problem and it was that before in symfony3 it was run in the console: php bin/console doctrine:mapping:import MiBundle yml and it generated and mapped a database entity but in symfony 4 the command in the console is always...
asked by 20.12.2017 / 22:51
1
answer

How to capture object File sent with fetch in a Symfony Driver

I have the following code where you asicronically sent an object file .. This is the function with which I capture the File object handleChangeAudio: (event) => { var arrayAudio = event.target.files; function readerF...
asked by 04.12.2017 / 15:47
1
answer

subConsulta select transformed to DQL

I am using MySQL and I have this select : Select TOP 15 Item DescriptionforSales , (select top 1 Retail from Pricelist where Pricelist.peachitemid = products.peachitemid ) as Retail " From products where imagen=1 and active=1...
asked by 26.11.2017 / 23:17
0
answers

Upload image to web folder in Symfony2

Hello, I am working on a project with Symfony2 and I have problems when uploading an image to the web folder of the project. With this I get the image from the html form: $file = $request->files->get('file'); this is the dir...
asked by 17.11.2017 / 04:19
1
answer

Symfony make a call to a controller (REST API)

Good, I have an environment with symfony3 installed and my intention is to make an api rest, use as web server NGINX and as a proxy reverse apache, that is to say in port 80 I have NGINX and in port 8080 Apache. I have developed a test projec...
asked by 17.11.2017 / 13:27
1
answer

What actions should be implemented to improve security in Symfony?

I have developed an application in Symfony, with which I have no functional problems, more if in security according to some suggestions of infrastructure coordination. The point is that from the production server you can access the base direc...
asked by 10.11.2017 / 18:46