管理控制器重写问题

发布于 2024-12-15 21:37:39 字数 423 浏览 2 评论 0原文

我在重写管理客户控制器类时遇到问题。它在我的本地系统中工作正常,但在我的服务器中却不然。以下是用于重写admin客户控制器类的代码:

<rewrite>
    <Ritwik_Wishlistenhanced_Customer_exportCsvwishlist>
         <from><![CDATA[#^/admin/customer/exportCsvwishlist#]]></from>
         <to>/wishlistenhanced/customer/exportCsvwishlist</to>
    </Ritwik_Wishlistenhanced_Customer_exportCsvwishlist>
</rewrite>

I have problem in rewriting the admin Customer controller class. It is working fine in my local system but in my server it is not. The following is the code used to rewrite the admin customer controller class:

<rewrite>
    <Ritwik_Wishlistenhanced_Customer_exportCsvwishlist>
         <from><![CDATA[#^/admin/customer/exportCsvwishlist#]]></from>
         <to>/wishlistenhanced/customer/exportCsvwishlist</to>
    </Ritwik_Wishlistenhanced_Customer_exportCsvwishlist>
</rewrite>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

偏闹i 2024-12-22 21:37:39

通常是因为生产服务器运行的是 Linux/UNIX,它具有区分大小写的文件系统并影响控制器查找。因此,您可能需要在重写和 yourcontroller.php 文件的情况下将 exportCsvwishlist 更改为 exportcsvwishlist

Usually it's because production server is running Linux/UNIX which has case-sensitive file system and that influences controllers lookup. So you probably need to change exportCsvwishlist to exportcsvwishlist in your rewrite and case of yourcontroller.php file

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文