This course is archived!
09.
Feeling unfulfilled by SPA promises? Go back to Twig. (Dan Blows)
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.
Tip
Symfony Live London 2019 presentation by Dan Blows.
Talk Abstract
We’ve all heard the benefits of building a client-side app in JavaScript that talks to a server-side REST API. But often this approach introduces a lot of accidental complexity, without really delivering the gains. How can you get the best of both worlds? In this talk, I’ll show how to get the simplicity of server-side rendering with the architectural and performance improvements of an SPA.
2 Comments
How does he say
and then a minute later switches to PHP and says
? 🤯
Hey @Andrey
Yea, it sounds contradictory, but it may be his way to say keep a balance between the code in your controllers and template. By the way, don't worry about that too much, there's a new way to decouple your templates from PHP code. Its name is "Twig Components" they are so powerful! Ryan demonstrates how to work with them in this tutorial https://symfonycasts.com/screencast/last-stack
Cheers!
"Houston: no signs of life"
Start the conversation!