Chapters
20 Chapters
|
1:53:05
|
Login to bookmark this video
-
Course Code
Login or register to download the code!
Login or register to download the code!
-
This Video
Login or register to download the video!
Login or register to download the video!
-
Subtitles
Login or register to download the subtitles!
Login or register to download the subtitles!
-
Course Script
Login or register to download the script!
Login or register to download the script!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"php-cs-fixer/shim": "^3.46", // v3.46.0
"phpdocumentor/reflection-docblock": "^5.3", // 5.3.0
"phpstan/phpdoc-parser": "^1.25", // 1.25.0
"symfony/asset": "7.0.*", // v7.0.3
"symfony/asset-mapper": "7.0.*", // v7.0.2
"symfony/console": "7.0.*", // v7.0.2
"symfony/dotenv": "7.0.*", // v7.0.2
"symfony/flex": "^2", // v2.4.3
"symfony/framework-bundle": "7.0.*", // v7.0.2
"symfony/monolog-bundle": "^3.0", // v3.10.0
"symfony/property-access": "7.0.*", // v7.0.0
"symfony/property-info": "7.0.*", // v7.0.0
"symfony/runtime": "7.0.*", // v7.0.0
"symfony/serializer": "7.0.*", // v7.0.2
"symfony/stimulus-bundle": "^2.13", // v2.13.3
"symfony/twig-bundle": "7.0.*", // v7.0.0
"symfony/ux-turbo": "^2.13", // v2.13.2
"symfony/yaml": "7.0.*", // v7.0.0
"symfonycasts/tailwind-bundle": "^0.7.1", // v0.7.1
"twig/extra-bundle": "^2.12|^3.0", // v3.8.0
"twig/twig": "^2.12|^3.0" // v3.8.0
},
"require-dev": {
"symfony/debug-bundle": "7.0.*", // v7.0.0
"symfony/maker-bundle": "^1.52", // v1.53.0
"symfony/stopwatch": "7.0.*", // v7.0.0
"symfony/web-profiler-bundle": "7.0.*" // v7.0.2
}
}
8 Comments
hello do you have any idea why when i install symfony/ux-turbo, i have this exception :
An exception has been thrown during the rendering of a template ("Could not find an asset mapper path that points to the "turbo-core" controller in package "symfony/ux-turbo", defined in controllers.json.").i use asset-mapper and my controller.json file seem good :
what i missing ?
Re, after many hours i check how Symfony UX bundles provide path to asset-mapper.
For symfony/ux-turbo, i think this method is used for define path to asset-mapper (or maybe i am totally wrong :D).
If i am right, why isAssetMapperAvailable return false ?
Into asset_mapped.yaml i define the path manully :
When i run php bin/console debug:asset-map, i see @symfony/ux-turbo path:
Hey @Ludovic-J
Have you tried to remove the cache directory completely? Maybe something was cached too hard and system can't detect AssetMapper installed and configured properly.
Cheers!
If we use react/angular it updates only part of the page right? full page reload over Ajax will have performance issues when we use Turbo compared to react in bigger applications?
Hey @Krishnadas-Pc
The AJAX requests made by Turbo does not trigger a full page reload. It will make a normal request to your backend, but it will update only the HTML content that needs to change, so it won't load all of your assets, scripts, etc on each page load
Cheers!
Hello,
To do activate Turbo in my web, do I have to add stimulus controller to any element?
In my my web page, I did not connect stimulus controller to any element. I see turbo is not working now.
is it normal?
thank you
Hey @Mahmut-A
You should be able to run Turbo without Stimulus, they aren't dependent on each other. If you load a Stimulus controller does Turbo starts working? Do you see any errors in the browser's console?
Cheers!
Hi,
I fixed by addind javascipt block to my twig file thank you so much
"Houston: no signs of life"
Start the conversation!