繁体   English   中英

Shopware插件

[英]Shopware plugin

我正在尝试在购物软件中创建一个基本插件,我还从购物软件的参考站点添加了代码。 该插件也可在shopware后端中使用。 但是,当我尝试在浏览器上发布URL http:// localhost / shopware / RoutingDemonstration时 ,它仅重定向到主页。 没有错误,即使我在URL重定向到主页(不在404页上)之后添加任何内容,也不会显示任何内容。

404的默认行为是重定向到首页。 因此,看来您的控制器未正确注册。 您需要向我们展示一些源代码以了解您的问题。 也许您的订阅服务器不起作用?

文档中提供了有关如何执行此操作的完整示例: https : //developers.shopware.com/developers-guide/legacy-plugin-system/#register-plugin-controller-with-template-in-a-subscriber

如果要查看PHP错误,还必须将以下PHP代码添加到config.php文件中:

'front' => [
    'throwExceptions' => true,
    'showException' => true
],

'phpsettings' => [
    'display_errors' => 1
],

'template' => [
    'forceCompile' => true
],

'csrfProtection' => [
    'frontend' => true,
    'backend' => true
],

'httpcache' => [
    'debug' => true
]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM