Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony UX Swup, Unknown "stimulus_controller" function

I'm using symfony 6.3 and I have installed symfony/ux-swup:

//bundles.php
<?php

return [
   // ..............

    Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
    Symfony\UX\Swup\SwupBundle::class => ['all' => true],
    Symfony\UX\Dropzone\DropzoneBundle::class => ['all' => true],
];

I have followed the doc https://symfony.com/bundles/ux-swup/current/index.html#usage

The twig page

    <div {{ stimulus_controller('symfony/ux-swup/swup') }} id="swup" data-turbo="false">

    <section class="content">
        <div class="container-fluid">

         my content
       </div>
    </section>
   </div>

But I gor this twig function error:

Unknown "stimulus_controller" function.

enter image description here

like image 707
hous Avatar asked Aug 08 '26 11:08

hous


1 Answers

Now it's in a separate bundle :

composer require symfony/stimulus-bundle
like image 180
Jsenechal Avatar answered Aug 10 '26 07:08

Jsenechal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!