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...
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...
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...
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...
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...
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...
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->...
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...
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...
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 ...