3

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

1 Answer 1

8

Now it's in a separate bundle :

composer require symfony/stimulus-bundle
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.