Chapters
44 Chapters
|
4:19:56
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
08.
Cart API & Data
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!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This course is also built to work with Vue 3!
What JavaScript libraries does this tutorial use?
// package.json
{
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.15.1", // 5.15.1
"@symfony/webpack-encore": "^0.30.0", // 0.30.2
"axios": "^0.19.2", // 0.19.2
"bootstrap": "^4.4.1", // 4.5.3
"core-js": "^3.0.0", // 3.6.5
"eslint": "^6.7.2", // 6.8.0
"eslint-config-airbnb-base": "^14.0.0", // 14.2.0
"eslint-plugin-import": "^2.19.1", // 2.22.1
"eslint-plugin-vue": "^6.0.1", // 6.2.2
"regenerator-runtime": "^0.13.2", // 0.13.7
"sass": "^1.29.0", // 1.29.0
"sass-loader": "^8.0.0", // 8.0.2
"vue": "^2.6.11", // 2.6.12
"vue-loader": "^15.9.1", // 15.9.4
"vue-template-compiler": "^2.6.11", // 2.6.12
"webpack-notifier": "^1.6.0" // 1.8.0
}
}
4 Comments
Hi,
I have this error :
The filter
irinot found inbase.html.twig`<br />window.cartIri = '{{ app.session.get('_cart_'~app.session.get('_cart_id'))|iri }}';When I check 'src/twig' indeed it is not defined!
thanks
Hey Cecile!
If you download the course code form this page, this
irifilter comes from a custom Twig extension that we include in that code :). Just in case, you can find the source for the twig extension here: https://gist.github.com/weaverryan/61f09456bcdace4fb857b55106eba439Let me know if that helps!
Cheers!
thanks @weaverryan soo much, this helps me, because I used the code from part 1
Ah yes, sorry for changing a few things! I know that an be inconvenient as a watcher... but it's really useful for us to add some "extra: stuff between tutorials so that we can keep moving, but not cover boring details (like aa Twig extension in a Vue course). There are various other things that have been tweaked - so you might want to use fresh code from part 2... or beware ;).
Cheers!
"Houston: no signs of life"
Start the conversation!