Questions tagged as 'symfony4'

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

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 4 twig and images

I want to upload a simple image with twig. Reading the symfony manual says that we put this in twig ... <img src="{{ asset('images/logo.png') }}" alt="Symfony!" /> Well, it does not work. I have installed assets, $ composer requ...
asked by 15.05.2018 / 22:36
0
answers

Doctrine ORM ManyToMany bidirectional error

I have a query about my entity that gives me an error, I'll show the entity and the error: class Post implements ResourceInterface, TranslatableInterface { /** * @var int */ private $id; /** * @var bool */...
asked by 11.10.2018 / 20:02
2
answers

Error creating bundle in symfony 4

Good I have this error when running php bin / console, it throws me the following:    In FileLoader.php line 168:                                                                                                        The autoloader expected c...
asked by 04.04.2018 / 17:11
1
answer

will customize FOSUserBundle in symfony 4

hello I hope you can help me, we have always used this bundle FOSUserBundle in symfony 2 now that we are passing everything to symfony 4 we can not customize the forms, I can get styles by adding <link rel="styl...
asked by 04.08.2018 / 00:03
0
answers

Can not find "tail" command in Symfony

Following the symfony documentation tutorial Symfony. Services I see that I can not execute the following tail -f var/log/dev.log command. I'm also testing it with php tail -f var/log/dev.log because it was the way I was executin...
asked by 01.01.2019 / 13:42
0
answers

"bin / console debug: autowiring" shows nothing

I am using the php bin/console debug:autowiring command to list the aliases to Symfony services as seen in the tutorial of your documentation Symfony: Services But while I see that in its example it makes a complete list of all the a...
asked by 01.01.2019 / 20:05