Questions tagged as 'symfony3'

0
answers

Helper custom in Symfony

I am developing an application in Symfony 3 and I would like to know what is the best way to create a Helper that can obtain defined parameters. Let me explain: I have a file of parameters with some keys of an Api defined: parameters: a...
asked by 25.04.2018 / 21:03
1
answer

Send CSV to an API using POSTMAN

I am using Symfony 3 to create an API that receives a CSV file and reads it. This is my route: /** * Recive a file * * @Route("/get/file", name="get-file") * @Method("POST") * @param Request $request * @return Response */ public functi...
asked by 17.01.2018 / 14:51
2
answers

Command to install Symfony 3 on Windows

When I'm going to download and install Symfony with the following console command: php -r "readfile('http://symfony.com/installer');" > symfony ... I get the following error:    php_network_getaddresses: getaddrinfo failed: Unknown...
asked by 15.05.2017 / 20:43
2
answers

Sending variables by ajax I receive an empty object

I am trying to send a variable that I get from an input to my controller in the following way $(document).ready(function() { $(".autocomplete").on('blur',function(){ var occ = $("#oculto_id").val(); $.ajax({ url...
asked by 03.08.2018 / 20:09
1
answer

how can I create this mysql query in doctrine is it possible?

I have this query that I did in mysql SELECT 'formulario' as formulario, 'persona' as persona, 'uds' as uds, GROUP_CONCAT(pg.enunciado SEPARATOR ';') as valores_respuestas FROM preguntas_de_formularios as pdf INNER JOIN preguntas as...
asked by 26.02.2018 / 06:24
4
answers

How to download symfony to get it on localhost?

I downloaded Symfony for the first time on my new computer. I created my first project in the Home folder. I am able to use it to create bundles but I can not get it on the localhost. How can you get it here? It does not seem that I...
asked by 14.02.2017 / 18:39
2
answers

Symfony, return a Json with all the fields

I have an entity named "Courses" that has a series of attributes and one of them is "shop" which is an onetomany relation with a Entity "Shop" In the controller I have done an action that what it does is to return a JSON by applying a series...
asked by 05.02.2018 / 17:23
1
answer

Symfony, do not show a field in a Type form

Good, I have a form in Symfony of type "type" that shows a series of attributes, but in a specific case I would like to show the whole form except one field. I tried to pass from the controller to the constructor of the buildForm in the Optio...
asked by 02.02.2018 / 16:10
1
answer

Problems with the routing file

Hello everyone I'm new using symfony, so I appeal to you for your humble help it happens that I found an exception:    The routing file   "/home/development/my_project_name/src/ApplicationBundle/Resources/config/routing.yml"   contains unsupp...
asked by 07.11.2017 / 19:43
1
answer

The file "test.jpeg" was not uploaded due to unknown error

I have configured the uploading of images correctly in the admin and followed this documentation: link Now in another part of the system that does not use EasyAdminBundle I need to upload images, in the controller I have this: public func...
asked by 18.10.2017 / 00:47