Twig extensions for the YouTube API in Symfony Sulu CMS tutorial

preview_player
Показать описание
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
Part 1 Sulu CMS setup with DDEV
Gitlab pipeline with Codeception tests full example

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:45 Offical Symfony documentation "How to write a custom Twig extension"
18:06 Outro with helpfull links

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Our NCA Event Highlights & Live Sessions:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Here you can find our social media channels:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

These are our websites:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

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.

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Рекомендации по теме
Комментарии
Автор

You should try vue.js. In my optinion it feels like Twig in the frontend.

SuperDuperDevelopersClub