Chapters
22 Chapters
|
1:32:28
|
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": "*",
"doctrine/dbal": "^3", // 3.9.4
"doctrine/doctrine-bundle": "^2.13", // 2.13.2
"doctrine/doctrine-fixtures-bundle": "^3.6", // 3.7.1
"doctrine/orm": "^3.3", // 3.3.1
"dragonmantank/cron-expression": "^3.4", // v3.4.0
"knplabs/knp-time-bundle": "^2.4", // v2.4.0
"league/html-to-markdown": "^5.1", // 5.1.1
"symfony/asset": "7.2.*", // v7.2.0
"symfony/asset-mapper": "7.2.*", // v7.2.0
"symfony/console": "7.2.*", // v7.2.1
"symfony/doctrine-messenger": "7.2.*", // v7.2.3
"symfony/dotenv": "7.2.*", // v7.2.0
"symfony/flex": "^2", // v2.4.7
"symfony/form": "7.2.*", // v7.2.0
"symfony/framework-bundle": "7.2.*", // v7.2.2
"symfony/mailer": "7.2.*", // v7.2.0
"symfony/mailtrap-mailer": "7.2.*", // v7.2.0
"symfony/messenger": "7.2.*", // v7.2.3
"symfony/monolog-bundle": "^3.10", // v3.10.0
"symfony/remote-event": "7.2.*", // v7.2.0
"symfony/runtime": "7.2.*", // v7.2.0
"symfony/scheduler": "7.2.*", // v7.2.3
"symfony/security-csrf": "7.2.*", // v7.2.2
"symfony/stimulus-bundle": "^2.21", // v2.22.1
"symfony/twig-bundle": "7.2.*", // v7.2.0
"symfony/validator": "7.2.*", // v7.2.2
"symfony/webhook": "7.2.*", // v7.2.0
"symfony/yaml": "7.2.*", // v7.2.0
"symfonycasts/tailwind-bundle": "^0.7.1", // v0.7.1
"twig/cssinliner-extra": "^3.18", // v3.18.0
"twig/extra-bundle": "^3.0", // v3.18.0
"twig/inky-extra": "^3.19", // v3.19.0
"twig/twig": "^3.0", // v3.18.0
"zenstruck/messenger-monitor-bundle": "^0.5.1" // v0.5.1
},
"require-dev": {
"phpunit/phpunit": "^9.5", // 9.6.22
"symfony/browser-kit": "7.2.*", // v7.2.0
"symfony/css-selector": "7.2.*", // v7.2.0
"symfony/debug-bundle": "7.2.*", // v7.2.0
"symfony/maker-bundle": "^1.61", // v1.62.1
"symfony/phpunit-bridge": "^7.1", // v7.2.0
"symfony/stopwatch": "7.2.*", // v7.2.2
"symfony/web-profiler-bundle": "7.2.*", // v7.2.2
"zenstruck/browser": "^1.9", // v1.9.1
"zenstruck/console-test": "^1.7", // v1.7.0
"zenstruck/foundry": "^2.2", // v2.3.0
"zenstruck/mailer-test": "^1.4" // v1.4.2
}
}
10 Comments
En php.ini extension=xls is enabled but the error still appears
Hey @giorgiocba ,
That's great! First of all, please make sure that the
extension=xlsline does not start#, otherwise that's commented out and you need to uncomment it first. Also, make sure the php.ini file is correct, probably you're in the wrong file? You can check if the extension is enabled by runningphp -m | grep xlsin your terminal. If you don't see it printsxls- then most probably you're in the wrong file. You can watch the path to thephp.inifile in the output ofphp --inicommand.Please, also make sure you don't have a few versions of PHP installed in your system, otherwise a different version might be used that reads a different config file.
Also, how do you run the website? Do you use
symfony servecommand as recommended? Please, try to restart the Symfony built in server after any changes in thephp.inifile and try again.I hope that helps!
Cheers!
Victor: Thank you so much for all your help. Your explanations are very clear and concise.
Hey @giorgiocba ,
You're welcome, I hope that helped! And feel free to ask questions if you have any issues following our tutorials.
Cheers!
Third problem
After installing inky another error appears:
An exception has been thrown during the rendering of a template ("Undefined constant "XSL_SECPREF_READ_FILE"").
Hey @giorgiocba ,
Yeah, that's most probably because you installed
twig/inky-extrawith--ignore-platform-req=ext-xsl. You need to have thatxslPHP extension installed and enabled in your PHP to use the bundle without issues.Cheers!
Other problem:
When I install: composer require twig/inky-extra
This not work, It is better suggested: composer require twig/inky-extra --ignore-platform-req=ext-xsl
Hey @giorgiocba ,
Yes, that
twig/inky-extrapackage requires you to havexslPHP extension. You have to install it to avoid problems with that bundle.Cheers!
Hi,
When write: {% apply inline_css(source('@styles/foundation-emails.css'), source('@styles/email.css')) %}
The are an error: There are no registered paths for namespace "styles".
Hey @giorgiocba ,
We registered that
stylespath in the previous chapter, see: https://symfonycasts.com/screencast/mailtrap/css-email#twig-styles-namespacePlease, make sure you did the same in your project. If you did, probably try to clear the cache and try again.
Cheers!
"Houston: no signs of life"
Start the conversation!