690 search results

…the code for this course and setting it up as per the readme file, the website is up and everthing works, except that the audios do not play and the turbo function is also not working. Any hints as to why this could be ? Thanks…
Gitanjali-N
Gitanjali-N
Read Full Comment
…t think the `controllers.json` item I just talked about is related: > An exception has been thrown during the rendering of a template ("The Turbo stream transport "default" doesn't exist."). What version of `symfony/mecure-bundle` do you have (try `composer show symfony…
weaverryan
weaverryan
Read Full Comment
…s supposed to be added automatically for you when you install `symfony/ux-turbo` by the Flex recipe system. However, if your `package.json` is in a non-standard place, that may not have happened. Try this: ``` npm add @hotwired/turbo -D ``` If you're…
weaverryan
weaverryan
Read Full Comment
…irritating to me. Also, the second requests generate an exception: `Twig\Error\LoaderError: Unable to find template "default/default.turbo_stream.twig"` (while calling that URL directly in the browser renders just fine using an completly different template). Sorry, if this sounds a bit confusing.
…enters too short password or makes any other mistake - the account is obviously not created, but no error is shown. There is no message what went wrong. I figured out the problem occurs only when Turbo is enabled. Any idea how to fix it? Best…
Bartlomeij
Bartlomeij
Read Full Comment
…which unfortunately didn't help me. ``` ... "mercure-turbo-stream": { "enabled": true, "fetch": "eager" } ... ``` docker-compose.yaml - Very different from the tutorial code ``` ... ###> symfony/mercure-bundle ### caddy: image: dunglas/mercure restart: unless-stopped environment: # Uncomment the following line to disable HTTPS #SERVER_NAME: ':80' MERCURE…
…downloading the source code of the widget and trying to make sense of it) is that it does something on window.load event. And since this event is not fired on turbo visits the widget is not initialised properly. This is an excellent theory. Unfortunately…
weaverryan
weaverryan
Read Full Comment
…page again... but adding the defer attribute to it. Check a few screencasts to learn more about it: - https://symfonycasts.com/screencast/stimulus/encore - https://symfonycasts.com/screencast/turbo/disabling As you can see, Webpack Encore already knows how to handle it, you just need…
…Turbo will follow it. I feel I'm missing some important detail here (because that answer is too simple) - so please let me know :). > and another just show a pre-loaded content that was previously hidden Turbo won't help you here - this is…
weaverryan
weaverryan
Read Full Comment
…We though about creating a controller which first link loads content via Turbo.visit('url') (needed to import the turbo library) and the other just shows a hidden static content (we find this approach a bit cumbersome). - Is there any way to load dynamic content…
SamuelVicent
SamuelVicent
Read Full Comment
…and action for the user to take. As I'm reading this wouldn't trigger a rerendering of the HTML and testing proves that's true. Is there an elegant solution to this or would disabling turbo/hotwire on the form be the better approach?
13 lines | config/bundles.php
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
];
See Code Block in Script
14 lines | config/bundles.php
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Symfony\UX\Turbo\TurboBundle::class => ['all' => true],
Knp\Bundle\TimeBundle\KnpTimeBundle::class => ['all' => true],
];
See Code Block in Script
…interesting, this error is only triggered on debug mode, with the Symfony profiler. I put the environment in production mode and Turbo works like a charm! Let me know if you have some idea why is loading twice on dev mode with the profiler! Thanks…
…Is there really a Mercury tutorial planned? That would be great ! If yes, for when could we have access to it? Do you plan to do a Mercury training again combining it with Turbo, or this time, with a traditional Symfony project not using Turbo?
Hi David! The JavaScript ecosystem has indeed grown and matured A LOT during the past 6 or so years. It's quite remarkable! I'm glad you find this useful! I think you will love the stimulus/turbo tutorials as well!
…in the template for a page, you embed a controller (`render(controller())` correct?) that renders a contact form. Question: (ignoring Turbo for a moment - just pretend you're on a non-Turbo site), where does that contact for submit to? Does it submit to a…
weaverryan
weaverryan
Read Full Comment
…looks pretty similar to the core Mercure + Turbo code (it's not exactly the same use-case, but the EventSource stuff is the same - https://github.com/symfony/ux/blob/main/src/Turbo/Bridge/Mercure/Resources/assets/src/turbo_stream_controller.js ) Sorry I can…
weaverryan
weaverryan
Read Full Comment
…I hate", when you're scrolling a page and things are lazily loaded and it makes the page "jump" because it takes a while for that content to load. What if you had a 'load-this-FUTURE-content' trigger (maybe an empty turbo element??) that…
…generally-speaking, we do something pretty similar on this tutorial. You could put a turbo-frame around the entire "comments" area... which has the advantage that only that area updates when a new comment is added. But I'm guessing there is more to your…
weaverryan
weaverryan
Read Full Comment