Magento 的管理控制器在哪里?
我试图确定如何从管理面板加载产品并加载到管理面板的编辑面板中。
我假设某个地方有一个管理控制器,但我似乎无法找到它。
是否有存储管理控制器的逻辑方式?
I am trying to determine how a product is loaded from the admin panel and loaded into the edit panel in the admin panel.
I am assuming that there is an admin controller somewhere, but for the life of me I cannot seem to locate it.
Is there a logically way that admin controllers are stored?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数管理控制器都可以在
Adminhtml
模块中找到,如果您好奇,请参阅以下文章(自链接)介绍了如何在 Magento 中配置管理控制器,这应该可以让您找到您要查找的任何内容。
app/code/core/Mage/Adminhtml/Controller
文件夹包含基本管理操作控制器,以及一些其他基本控制器类。这些类不是 URL 路由到的控制器,而是实际管理控制器继承的控制器。Magento 没有自动加载控制器文件夹中的类,因此这些基本控制器被放置在名为 Controller 的文件夹中,以便 Magento 的默认自动加载器将加载它们。类名
被转换为路径
Most Admin controllers can be found in the
Adminhtml
module atIf you're curious, the following article (self-link) covers how Admin controllers are configured in Magento, which should let you find anything you're looking for.
The
app/code/core/Mage/Adminhtml/Controller
folder contains the base Admin action controller, as well as a few other base controller classes. These classes are not controllers that URLs are routed to, but are the controllers that actual admin controllers inherit from.Magento doesn't have an autoload for classes in the controllers folder, so these base controllers are placed in a folder named Controller so that Magento's default autoloader will load them. The class name
gets translated to the path
大多数模型/控制器都存储在 /app/code/core/Mage/ 目录中。取决于您要寻找的内容,取决于您在哪里可以找到它。如果您正在寻找管理/特定功能,请检查 Adminhtml 文件夹。那么这仅取决于您要寻找的部分。
Most of the model/controllers are stored in /app/code/core/Mage/ directory. Depending on what you're looking for, will depend on where you will find it. If you're looking for admin/specific functionality, check the Adminhtml folder. Then it just depends on what section you're looking for.