Questions tagged as 'symfony3'

1
answer

How to use doctrine in a self-service defined in symfony

I am developing a web system using the concept of symfony services 3.4 Said service makes queries with dql de doctrine, these work correctly if the use of another controller. However, when I want to use them in the defined service, I get the...
asked by 23.09.2018 / 01:58
0
answers

Symfony 3.4 Deactivate transaltions according to language

I have a question, I am using the Symfony translations. I have two languages, ES and FR. The locale is ES and I would like to be able to change from one language to another, but only the page translated into French remains. There is some way of...
asked by 14.09.2018 / 15:56
0
answers

Read a database to determine if, insert data or not

I have inserted the data of a directory that I already visited, but if I want to go through the same directory with different files inside, I do not want the files that were already read and stored to be stored in the database again. Any idea...
asked by 05.09.2018 / 20:42
0
answers

Pass variable from js to twig

I am trying to pass a variable from js to twig in the following way: <script> $('.li').on('click', function(){ var that = parseInt($(this).attr("id")); confirm("Estas seguro?, OK para continuar.", function(){ document.location...
asked by 06.08.2018 / 21:12
1
answer

fill out a form automatically

In a TypeText input I look for a match by name within a table in a db of what the user types in that input. In the controller I receive the values of what the user writes ( $ term ) as follows: public function jqueryWithAction(Request $reque...
asked by 31.07.2018 / 21:06
0
answers

How to manipulate a json

I have a json object composed of two arrangements: { "letras": [ "a", "b", "c" ], "numeros": [ 5, 6, 7 ] } Which sent from my controller as follows: $response = new JsonResponse(); $response->se...
asked by 01.08.2018 / 18:27
0
answers

How to insert values to a table with Symfony?

I'm using symfony, to insert an xml into a database. already made the journey to xml, now I need to learn how I store it in the table, without consultation. foreach ($matchInfo->children() as $matchOfficials){ foreach ($matchOfficials->...
asked by 23.07.2018 / 00:57
0
answers

sylius add product can not find template

I want to place a link to add a product to the cart as indicated by the documentation and I have to use the path 'sylius_shop_partial_cart_add_item' with the parameter 'productId' <a href="{{ path('sylius_shop_partial_cart_add_item', {'pro...
asked by 25.07.2018 / 20:52
1
answer

Show forms in twig with symfony

I'm trying to make a comment system in symfony but at the moment of rendering the form in a for as follows twig code: {% for publicacion in publicaciones %} {{form(form}} {% endfor %} the form is shown only once and is not shown for...
asked by 15.07.2018 / 02:25
0
answers

Differences between addSelect () and Select () query builder doctrine

Someone could explain to me the difference between the methods of doctrine addSelect() and Select() , I need to make a query using query builder and I have doubts about which to use ...     
asked by 27.06.2018 / 18:51