My profiler toolbar isn't showing up in symfony 4.3.1
In my .env file, I have specified my app environment to be dev and debug to be true like so:APP_ENV=dev APP_DEBUG=true In my config/packages/dev/web_profiler.yaml file I have the...
View ArticleDisplay last post on my symfony site from my wordpress blog
I have a Symfony (v4.3) website which integrates a blog. I decided to use wordpress for the blogging part of the site, so I had setup wordpress into a "/public/blog" folder in my Symfony architecture....
View ArticleUse function Javascript on TWIG page using WebPack Encore and Symfony 4
i'm using Symfony 4.2 and i use last WebPack Encore.I have issu because i need to use function from my javascript on my twig template, but this never work.I always have same problem: Uncaught...
View ArticleSymfony & AWS BS - Env vars for console outside .env files
I have a symfony API which runs on AWS beanstalk instances. My .env file registers the environment variables that I need in my app. I override all of them in the AWS console to adapt to my...
View ArticlesFetch datas with specified fields as entity
My Symfony 4.3 applications is very heavy on data consumption and i need to do some optimizations. One important step would be to limit the fields i select from my entities as most of them are only...
View ArticleHow can I submit a form as soon as I have a data? [duplicate]
This question already has an answer here:How do I submit a “file” input without submit button using JavaScript? 5 answersI am under Symfony 4.3 and building a webapp.I have a form, with only one field:...
View ArticleHow can resolve problem with variable roles in Symfony 4? [closed]
I am trying to teach the symfony 4 framework and I have a problem with the variable responsible for permissions, i.e. Roles. This is a REST application and everything is fine when adding a user via a...
View ArticleSymfony3.2 to symfony4 security.encoder_factory deprecated error
I updated my website from Symfony 3.2 to Symfony 4, by creating a new symfony4 skeleton and moved the source code from symfony3.2 to symfony4.I had been made the changes as mentioned in Upgrading...
View ArticleHow to use ICU's select with decimals on Symfony4?
Symfony4 uses ICU for translations. I want a rich display of time values in my translation - in French. For instance, 1.25 hours should display "One hour and a quarter" - pardon my french.Yet, i found...
View ArticleHow to retrieve information from a file with an html form?
I have a problem with my form.This is the situation: I use the CraueFormFlowBundle bundle to create a step-by-step form (4 steps).So, I use the create form of the bundle $form = $flow->createForm();...
View Articlesymfony4 doctrine 2 multiple db - migrate data from migrate data from 2...
I am migrating data to the next project. It integrates two dedicated systems. I have to map data into new databases, but new structure require to merge data from both databases into tables with some...
View ArticleSymfony 4 demo running with local server gives fatal error [closed]
I just installed the demo but I get a Fatal Error when I try to run it with the local web server. This is the log:Nov 15 12:02:03 |DEBUG| PHP Stack trace: Nov 15 12:02:03 |DEBUG| PHP #0...
View ArticleSymfony: How can I get hold of tagged services and processed configuration at...
I'm trying to symfony Configuration to determine how to wire some tagged services, but am running into problems. I've tried to boil the problem down into as little code as possible to help explain, but...
View ArticleHow to override block from base template with include? [closed]
I have a problem with Symfony 4. My templates all extend base.html.twig.And in my base.html.twig, I want to include my sidebar (sidebar.html.twig), which will have to include the{% block body %}{%...
View ArticleEntity with inheritance on relationship
I would like in Symfony 4 with doctrine use inheritance through a trait to add a new column to 2 different tables.This is the structure of those 2 tables I want:ManagerChildA has a relation OneToMany...
View ArticleTwig print array value with variable index using attribute
I have a Twig globalglobals: dayindex: 1: 'Monday' 2: 'Tuesday' 3: 'Wednesday' 4: 'Thursday' 5: 'Friday' 6: 'Saturday' 7: 'Sunday'Which I would like to access from twig using form collection field...
View ArticleHow to add Fontawesome 5 to Symfony 4 using Webpack Encore
I want to add Font Awesome 5 to my Symfony 4 project, this is what I did : I added font awesome to my project using yarn : yarn add --dev @fortawesome/fontawesome-freeI imported font awesome in my main...
View ArticleDynamic Prefix in Symfony4 Controller Route Annotation
I want to achieve this annotation in my controller, but i can not find any documentation or a way to have a wildcard(*) prefix in my annotation inside the controller. /** * @Route("/project/*/{Alias}",...
View ArticleSF4 autenticator failure in CsrfTokenManager
Working with Symfony 4, and making an User environment (using SymfonyCast tutorials) I wrote a LoginFormAuthenticator : `class LoginFormAuthenticator extends AbstractFormLoginAuthenticator { use...
View ArticleHow can regular expressions be used in Doctrine ODM 2.0.2 and PHP 7.3?
I am using symfony 4.3, PHP 7.3, doctrine/mongodb-odm-bundle 4.0.0, doctrine/mongodb-odm 2.0.2. There was a need to use regular expression in the request. It seems that the communication of Doctrine...
View Article