690 search results

…So, you would eventually be passing something like a `articleReferencesPager` into the template and using that to render the article references and the pagination links. The great thing about Turbo Frames is that... you don't need to do anything else. The form submit and…
weaverryan
weaverryan
Read Full Comment
…I am not aware of any `data-turbo="restore"` type of attribute you could add somewhere to opt into this). To do this, I would try to "cancel" the visit - https://turbo.hotwired.dev/handbook/drive#canceling-visits-before-they-start - but I don't…
weaverryan
weaverryan
Read Full Comment
…set up, but it generally solves the issue. Btw, for us, we're using Stimulus and Turbo for most of our JavaScript. Then, we use something like React or Vue for the cases where we have a particularly interactive "widget" on some page(s). It…
weaverryan
weaverryan
Read Full Comment
…at those course I mentioned above probably, we haven't talked about JWT in other courses unfortunately. Oh, or take a look at this video too: https://symfonycasts.com/screencast/turbo/mercure-jwt - might be useful for you I suppose. I hope that helps! Cheers!
…If you were using Turbo (that's a whole other topic), you could probably use a Turbo frame + Turbo Streams to accomplish this. Or just put the "add new user" form onto a totally different page, and leverage Turbo Drive to make the experience feel…
weaverryan
weaverryan
Read Full Comment
…the ABC React component and pass it these props", where those props could be anything, even an object that's serialized to JSON. So again, this is very similar to Inertia.js... but it's only one thing that Stimulus (and Turbo) can do :). Cheers!
weaverryan
weaverryan
Read Full Comment
…a few months, unfortunately, because we have some other super high priority things to cover like Symfony UX/Stimulus/Turbo & Symfony 5.2 to name the 2 most important things at the moment. But if you have any other problems or questions, let me know…
weaverryan
weaverryan
Read Full Comment
Blog
How We Built Brontie, your AI Assistant

…tools we already rely on: Messenger, the service container, the Rate Limiter component, security voters, Turbo, Stimulus, and our normal testing setup. It turns out Symfony is pretty good at building AI applications. Another reason why we love it! Retrieving useful content is only half…

By MolloKhan

Read Full Post
Blog
2023: A Year in Tutorials & Open Source

…you can see it on this blog section or any course pages. And this is more than a re-skinning: it's a chance for us to embrace the LAST Stack principles: leverage Turbo, delete a lot of custom JavaScript and use Stimulus everywhere. It…

By weaverryan

Read Full Post
<?php
namespace App\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
class TurboFrameRedirectSubscriber implements EventSubscriberInterface
{
public function onKernelResponse(ResponseEvent $event)
{
}
public static function getSubscribedEvents()
{
return [
ResponseEvent::class => 'onKernelResponse',
];
}
}
See Code Block in Script