690 search results

…`symfony/stimulus-bundle`, and `symfony/ux-turbo`. Once those were bumped, the `composer.lock` update reflected the new resolved graph, and the app was then verified in the browser plus the Turbo/Stimulus checks. --- **Sources:** - [Upgrading to Symfony 8.0!](/screencast/symfony8-upgrade/symfony-80…
…`symfony/stimulus-bundle`, and `symfony/ux-turbo`: ```terminal symfony composer outdated -D ``` In this chapter’s flow, the Symfony 8 upgrade is validated by the app booting, Turbo still showing AJAX navigation in the web debug toolbar, and Stimulus still initializing in the browser console…
…up stimulus controllers and other assets? I'm pretty sure some bundles I've used have twig controllers and themes, but I'm not sure about assets. I'm just starting out with Symfony, but the few projects I have all use turbo and stimulus.
JeffJones
JeffJones
Read Full Comment
Hey |mention:91995| I just answered your other message, but I just realized that you're using Webpack Encore, not AssetMapper, right? In general, you need to install the package `turbo-view-transitions` and rebuild your assets Cheers!
MolloKhan
MolloKhan
Read Full Comment
…includes doing work here! Fortunately Kevin is now "spun up" & I'm also recording, so we're hoping to accelerate. Not sure about PWAs this year, I'm also interested in https://turbo.hotwired.dev/handbook/native but haven't played with it yet Cheers!
weaverryan
weaverryan
Read Full Comment
…done this way. Depending on exact situation there can be found different ways, for example maybe some turbo frame with menu to display what you need. And if you want do it inside the twig, you can get current route name from request, and compare…
…cors_origins http://127.0.0.1:8000 ``` to ```yaml # compose.yaml mercure: environment: SERVER_NAME: ':80' MERCURE_EXTRA_DIRECTIVES: | cors_origins https://127.0.0.1:8000 ``` The error regarding CORS policy is no longer present. I'm using `turbo_stream_listen("topics"…
…Sometimes it initializes, sometimes it doesn't. The only thing that works for me is to turn off turbo for the page. I haven't found any sensible instructions on how to do it anywhere. So I'm asking here if anyone can help. It…
…make a wrong question. I mean how can I avoid to including this `` block into every page, because I have in my CSS files defines my own style and this block of code is not needed anymore. Thanks ``` .turbo-progress-bar { position: fixed; display: block; …
skocdopolet
skocdopolet
Read Full Comment
…should sounds more familiar and easier. You just write PHP code and LiveComponents core do the JS work for you. With the Turbo Streams - that's something that allow you to dynamically update the page with some response. In short, there might be some overlaps…
…m upgrading to Symfony 7.2 and the CSRF Protection break my form when I submit them in a turbo-frame. When I submit from the full page, everything works well but when I load this turbo-frame in another page or in a modal…
…csrf_protection_controller.js. Now, every form inside a Turbo modal stops working (even though it works fine with a regular request outside the modal). The issue might stem from the `document.addEventListener('submit', function (event) { … })` found in the controller. This event never gets…
sylvaindeloux
sylvaindeloux
Read Full Comment
…via Ajax instead of a full, traditional, page reload submit. So I added the `submitForm` Stimulus action that handles the form via Ajax. These days, I would almost definitely solve this with Turbo (using the native Turbo Ajax form submit or a `` if needed. Cheers!
weaverryan
weaverryan
Read Full Comment
…And now we even got to choose between multiple technologies that do in this direction (live-components, turbo, htmx as the most prominent ones). I am just left with one question. I am using live-components in combination with "SymfonyCasts/dynamic-forms" and it works…
TristanoMilano
TristanoMilano
Read Full Comment
…in templalte /new.html.twig ``` {% block stream_success %} {{ include('swd/admin/organisation-group/_row.html.twig') }} {{ include('_flashes.html.twig') }} {% endblock %} ``` in app.js: ``` import { StreamActions } from "@hotwired/turbo" StreamActions.redirect = function() { const href = this.getAttribute("href") Turbo.visit(href) } ``` It works wonderfully…
creativx007
creativx007
Read Full Comment
…area C) In your JS that handles this action, you read off the `redirect` attribute and redirect there in JS (or more likely, you do a `Turbo.visit(theHref)`. Let me know if this helps! It's a great question. Sorry again about the delay…
weaverryan
weaverryan
Read Full Comment
…question (perhaps I have already asked it in another post) but a few months ago I remember that you had published a recent video course regarding the concept of asset manager which seemed be the last frontier by putting stimulus and turbo on the bench…
pasquale_pellicani
pasquale_pellicani
Read Full Comment
…not what I want. The initialization code is really hardwired to depend on full page refreshes and definitely doesn't play well with the DOM mutation that LiveComponents uses (and that more and more things use, like Turbo 8 morphing). Ideally, as morphing becomes more…
weaverryan
weaverryan
Read Full Comment
…the` voyage/edit.html.twig` template instead of `modalBase.html.twig`, but it fails to redirect in that case. I thought of creating a `redirect_controller.js` to change the` window.location.href` through a turbo-stream, but then I miss the toast notification ... Is…
JonathanP
JonathanP
Read Full Comment
…you're using Stimulus, you can implement your controller's `disconnect()` function and cancel/disable all the things you need. If you're not using Stimulus you'll need to find the right Turbo event to do that https://turbo.hotwired.dev/reference/events Cheers!
MolloKhan
MolloKhan
Read Full Comment