How to add a Twig extensions with a custom function to the Symfony framework fullstack Sulu CMS. In this PHP tutorial Roland Golla shows how to implement a own Twig function to a template. You will learn a actual usecase for the YouTube API, how to implement a webservice directly to the twig template to render content from an API to the HTML frontend.
See more PHP live coding videos
How to build a website from scratch in 2 hours
• How to build a website from scratch i...
Part 1 Sulu CMS setup with DDEV
• Part 1 Sulu CMS Tutorial Setup with D...
Gitlab pipeline with Codeception tests full example
• Mastering Automated Testing and Deplo...
00:00 Intro Twig extension with Symfony Sulu CMS
01:05 Custom Twig function for the YouTube API usecase
01:47 Start task from linux terminal with a new Git branch
03:00 Add PHP file for a Twig extensions
07:36 Sulu content element configuration for YouTube playlist id
10:08 Twig template with function of the PHP extension
13:34 Login to Sulu content management system admin area
15:27 Full example for Twig extensions and YouTube API on GitHuib open source project
17:06 Best practice twig templates on sulu.rocks core developer example
17:45 Offical Symfony documentation "How to write a custom Twig extension"
18:06 Outro with helpfull links
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Our NCA Event Highlights & Live Sessions:
• Serverless Database Pipeline mit DB B...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Here you can find our social media channels:
► Twitter: / nevercodealone
► Instagram: / nevercodealone
► LinkedIn: / never-code-alone
► Facebook: / nevercodealone
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
These are our websites:
► Never Code Alone offers free and commercial live coding events and advanced PHP courses and supports social projects https://nevercodealone.de
► TESTIFY - Website Testing Agency with Cypress.IO and Codeception Testing Framework https://testify.team/
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
You want to support Never Code Alone?
Then feel free to leave us a subscription and write your questions and/or suggestions in the comments.
Thanks for watching!
I hope you enjoyed the video.
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Contact: [email protected]