我正在尝试运行Sylius的演示插件,如下所示:https://github.com/Sylius/PluginSkeleton
但是当我这样做的时候,我得到了:
ChannelNotFoundException: Channel could not be found! -
in D:\WebRoot\sylius\DemoPlugin\vendor\sylius\sylius\src\Sylius\Component\Channel\Context\CompositeChannelContext.php at line 53 和
Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Channel could not be found!").
in D:\WebRoot\sylius\DemoPlugin\vendor\sylius\sylius\src\Sylius\Bundle\ShopBundle\Resources\views\layout.html.twig at line 24我在php 5.6,Windows7上运行它,但由于这是我第一次使用sylius或symfony --我真的陷入了困境。
但是,/admin/会正确显示登录表单
删除有问题的通道错误:
{% block top %}通过删除整个块-只会在其他地方出错
发布于 2017-07-25 19:19:54
插件背后的想法是在Sylius安装中使用它们。我还没有创建一个,但我认为您可以将Sylius下载到您的机器中并运行
bin/console sylius:install与同一数据库进行比较。这将创建一个通道和所有需要的数据,可供您的插件使用。
https://stackoverflow.com/questions/45277371
复制相似问题