Chapters
27 Chapters
|
3:13:54
|
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": "*",
"babdev/pagerfanta-bundle": "^3.7", // v3.7.0
"doctrine/doctrine-bundle": "^2.7", // 2.7.0
"doctrine/doctrine-migrations-bundle": "^3.2", // 3.2.2
"doctrine/orm": "^2.13", // 2.13.3
"easycorp/easyadmin-bundle": "^4.4", // v4.4.1
"netgen/layouts-contentful": "^1.3", // 1.3.2
"netgen/layouts-standard": "^1.3", // 1.3.1
"pagerfanta/doctrine-orm-adapter": "^3.6",
"sensio/framework-extra-bundle": "^6.2", // v6.2.8
"stof/doctrine-extensions-bundle": "^1.7", // v1.7.0
"symfony/console": "5.4.*", // v5.4.14
"symfony/dotenv": "5.4.*", // v5.4.5
"symfony/flex": "^1.17|^2", // v2.2.3
"symfony/framework-bundle": "5.4.*", // v5.4.14
"symfony/monolog-bundle": "^3.0", // v3.8.0
"symfony/proxy-manager-bridge": "5.4.*", // v5.4.6
"symfony/runtime": "5.4.*", // v5.4.11
"symfony/security-bundle": "5.4.*", // v5.4.11
"symfony/twig-bundle": "5.4.*", // v5.4.8
"symfony/ux-live-component": "^2.x-dev", // 2.x-dev
"symfony/ux-twig-component": "^2.x-dev", // 2.x-dev
"symfony/validator": "5.4.*", // v5.4.14
"symfony/webpack-encore-bundle": "^1.15", // v1.16.0
"symfony/yaml": "5.4.*", // v5.4.14
"twig/extra-bundle": "^2.12|^3.0", // v3.4.0
"twig/twig": "^2.12|^3.0" // v3.4.3
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4", // 3.4.2
"symfony/debug-bundle": "5.4.*", // v5.4.11
"symfony/maker-bundle": "^1.47", // v1.47.0
"symfony/stopwatch": "5.4.*", // v5.4.13
"symfony/web-profiler-bundle": "5.4.*", // v5.4.14
"zenstruck/foundry": "^1.22" // v1.22.1
}
}
8 Comments
Hi
At this point (0:18), the url nglayouts/admin load a page without any css ?
I'm a bit lost with that public/build folder and don't know where is the 'call' to the existing css.
Thanks for attention, sincerly.
Hey Richard,
Did you installed your assets and ran
yarn watch?How do you spin up your web server? The
publicdirectory must be the root directory in the browserCheers!
Yarn is installed and watching, the server is launched from the IDE (serve -d).
The url load the login page wich is styled with css, but the nglayouts/admin page is not styled.
I tried to launch the server from MAM Pro on mac and got the same issue.
Maybe I should load the finish source code to see if it works but I prefer understand where is my mistake.
Context: Mac OS 13.1, PHP 8.1.5, IDE : IntelliJ IDEA 2022.3
Hey Richart,
Could you try to run
bin/console assets:installcommand? Then also restart your Webpack Encore and clear the Symfony cache just in case. Also, just to be extra sure, open the website in Chrome Incognito mode to avoid any browser's caching problem.Let us know if it still does not help!
Cheers!
Bonjour Victor,
I followed scrupulously your answer.
I 're-run' the bin/console command on assets without error.
I could'nt clear the symfony cache : I had this error:
Allowed memory size of 134217728 bytes exhausted (tried to allocate 40960 bytes) in /Users/[...]/start-layouts/vendor/twig/twig/src/Compiler.php on line 95Last : I open the server on private navigation on Chrome and shazam!, the admin page appear correctly.
Could you tell me how to avoid this memory lack? I did encountered this problem previously.
Have a nice day, thanks for your help.
Cordialement, Richard.
Bonjour Richard!
Awesome, congrats on EA styles! I'm happy to hear you were able to see them now :) It seems some bundle's styles were not installed during the bundle's installation so you installed them manually.
About the cache - no problem, technically you can clear the cache by removing the
var/cache/folder, e.g.:But if you want to be able to clear the cache with the console command - you need to tweak your PHP CLI configuration setting the
memory_limit = -1- it will disable the memory limit and in theory, you won't see this error anymore.Cheers!
That the point, I don't know where to set the "memory_limit=-1"
Thank you for being listening.
Hey Richard,
If you're using Symfony CLI, you can create a
php.inifile at the root of your project and add that config line there. Otherwise, you'll need to find your localphp.iniand modify it (the location of the file depends on your OS)You can read more about Symfony CLI here https://symfony.com/doc/current/setup/symfony_server.html
Cheers!
"Houston: no signs of life"
Start the conversation!