Questions tagged as 'symfony'

1
answer

Form of symfony, field of type FileType

I run into a problem when trying to upload images to the server using a symfony form as follows: $form = $this->createFormBuilder($image) ->add('full', FileType::class, array('label' => 'Imagen', 'multiple' => true))...
asked by 17.12.2018 / 19:52
2
answers

Form works with GET but not with POST in the controller

I am working with Symfony 4 and I am trying to send a form by the POST method to a function inside a Controller, but I get an error saying that the Controller does not exist. If I send it by the GET method, everything goes well, that is, the pat...
asked by 25.12.2017 / 18:59
1
answer

Symfony does not take me well the ROUTE

I'm starting a project in symfony 4 and I have a problem with the routes. I am using annotations This is my IndexController : <?php namespace App\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use...
asked by 19.10.2018 / 19:20
1
answer

Composer error when updating symfony

I'm trying to update symfony from version 2.3 to a more advanced one, my intention was about a 3.0 but there's no way. Reading in the forums I updated the composer.json to a "minimum-stability": "dev" but even so, I always get some dependency...
asked by 03.08.2017 / 23:48
1
answer

Convert string to HTML in Symfony

I'm having problems rendering a string (string) in HTML tags. This happens to me when using a form, which after previewing the data, but the problem is that it does not interpret the HTML tags, it just shows them to me. The variable happened...
asked by 04.09.2018 / 01:04
1
answer

extends from twig

I am starting to use smfony and I have some doubts, I have the following base template: base.html.twig <!DOCTYPE html> <html> <head> {% block head %} <meta charset="UTF-8"> <l...
asked by 11.06.2018 / 01:57
1
answer

template twig header and footer always visible without using {% block [...]%}

I'm doing a website for me and I have a question about how to use the templates. That is, right now I use {% block [...] %} to add my header and footer to the pages. But I would like to make both header and footer always present on the pa...
asked by 01.07.2018 / 19:01
1
answer

Symfony Unable to find template "BlogBundle :: home.html.twig"

I am learning symfony 3.4 and I am trying to link a route with a view. When I run the program using the route: http://127.0.0.1:8000/home It generates the following: Unable to find template "BlogBundle :: home.html.twig" My routing.y...
asked by 06.02.2018 / 14:56
1
answer

Symfony login returns Invalid credentials

I am developing a login with Symfony 3.4. When I try to login with this login I get the error Invalid credentials. . I followed and implemented the login by following the link tutorial . In my database I have the following: Whose stru...
asked by 16.12.2018 / 22:49
0
answers

Transform the precision circle of google maps to coordinates

I work in an application that uses the Geolocation API of Google Maps to obtain the location of devices. In the application you can create a geo fence so that it will notify you if the device has left its assigned area. The problem is that curre...
asked by 20.11.2018 / 15:06