PHP 7.4 trimming whitespace between string variables
Faced the same issue on PHP 7.4. Found this fix on GitHub.
So if you're using Twig 1, upgrade it at least to v1.43.0.
If you're using Twig 2, upgrade it at least to v2.10.0. (my case - I had v2.7.4 in the project).
How to add space between variables in twig template?
If {{ civilite }} {{ nom }} {{ prenom }} doesn't work...
how about
{{ civilite }} {{ nom }} {{ prenom }}?
set variables to twig when redirect link?
I don't quite understand what you want to do, if you want to put a link in a twig template or just redirect from a controller according a condition. if you can give more details of what you want to do I think I can help you.
UPDATE (solution)
You could use "Forwarding to Another Controller" instead of using "Redirect" and from there to send the variables to the twig template
Related Topics
"Transfer-Encoding: Chunked" Header in PHP
Mysqli Query to Loop Through Array and Update Multiple Rows
Modify HTML Attribute with PHP
How to Solve This "Warning: MySQLi_Connect(): (Hy000/1049): Unknown Database" Problem
How to Store a Class Instance in a $_Session Space
PHP Fopen() Error: Failed to Open Stream: Permission Denied
Filter_Sanitize VS Filter Validate, Whats the Difference - and Which to Use
Php.Ini Production VS Development
Ip Address Is Showing in Form Action with Codeigniter Http://::1/Codeigniter/ in HTML Sourcecode
Understanding PHP "Out of Memory" Error
How to Check If User Has Already Liked the Facebook Page
Google Recaptcha - Keep Getting 'Incorrect-Captcha-Sol'
Merge Two Png Images with PHP Gd Library
Jquery $.Post Processing JSON Response
Passing a Boolean Value from Checkbox in Laravel Form
Get All Work Days in a Week for a Given Date
Why Ob_Start() Must Come Ahead of Session_Start() to Work in PHP