覆盖初学者的Magento管理控制器 [英] Overriding Magento Admin Controller, for Beginners

查看:71
本文介绍了覆盖初学者的Magento管理控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在"Magento管理"部分中,我要覆盖核心Mage的"Sales/Order/ShipmentController.php"控制器文件.

In the Magento Admin section, I want to override the "Sales/Order/ShipmentController.php" controller file of the core Mage.

我尝试使用"from"和"至"标签,但没有用.
我不知道实际的&正确的做法,因为我是Magento的新手.

I have tried rewriting the URL, using the "from" & "to" tags, but in vain.
I don't know what is the actual & correct way of doing this, as I'm a newbie in Magento.

请任何人提供一些良好的基础知识和知识.正确的答案,以便至少使概念变得清晰.

Please anybody provide some good fundamental & correct answer, so that at least the concept gets clear.

如果可以的话,请同时告诉我,前端和前端控制器的实际用途是什么?后端?

Also, if possible, please tell me, what is the actual purpose of the controller, for both the frontend & the back-end?

非常感谢您的帮助.

推荐答案

不确定使用"from"和"to"标记在谈论什么...您需要做的是编写一个简单的自定义模块(最好的方法是方式),或者只是将其放在/app/code/local/目录中来覆盖控制器.

Not sure what you are talking about with "from" and "to" tags... What you need to do is write a simple custom module (the best way), or just override the controller by putting it in the /app/code/local/ directory.

-我写了一篇文章,内容涵盖了覆盖不同的Magento元素,包括控制器: http://prattski.com/2010/06/24/magento-overriding-core-files-blocks-models-resources-controllers/

- I wrote a post that covers overriding the different Magento elements, controllers included: http://prattski.com/2010/06/24/magento-overriding-core-files-blocks-models-resources-controllers/

我希望能帮上忙.

这篇关于覆盖初学者的Magento管理控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆