管理控制器重写问题
我在重写管理客户控制器类时遇到问题。它在我的本地系统中工作正常,但在我的服务器中却不然。以下是用于重写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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常是因为生产服务器运行的是 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
toexportcsvwishlist
in your rewrite and case of yourcontroller.php file