标签: symfonyux

Symfony UX Swup,未知的“stimulus_controller”函数

我正在使用 symfony 6.3 并且已经安装了ymfony/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],
];
Run Code Online (Sandbox Code Playgroud)

我已关注文档https://symfony.com/bundles/ux-swup/current/index.html#usage

树枝页面

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

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

         my content
       </div>
    </section>
   </div>
Run Code Online (Sandbox Code Playgroud)

但我发现这个树枝函数错误:

未知的“stimulus_controller”功能。

在此输入图像描述

symfony swup symfony6 symfonyux

2
推荐指数
1
解决办法
545
查看次数

标签 统计

swup ×1

symfony ×1

symfony6 ×1

symfonyux ×1