Magento - adminhtml网格编辑操作不起作用

时间:2012-08-13 14:33:33

标签: magento gridview

我对magento中的网格知之甚少,但我想创建一个。网格工作,但当我点击一行时出现错误:Fatal error: Class '(Namespace)_Logger_Block_Adminhtml_Logger_Edit' not found in \app\code\core\Mage\Core\Model\Layout.php on line 491 哪个文件可能导致此错误?目录结构:

Logger/Block/Adminhtml/Logger/Edit/Tab/Form.php
Logger/Block/Adminhtml/Logger/Edit/Form.php
Logger/Block/Adminhtml/Logger/Edit/Tabs.php
Logger/Block/Adminhtml/Logger/Edit.php
Logger/Block/Adminhtml/Logger/Grid.php
Logger/Block/Adminhtml/Grid.php
Logger/Block/Adminhtml/Loggerbackend.php
Logger/Helper/Data.php
Logger/Model/Mysql4/Logger/Collection.php
Logger/Model/Mysql4/Logger.php
Logger/Model/Logger.php
Logger/controllers/Adminhtml/LoggerbackendController.php
Logger/etc/config.xml
Logger/sql/logger_setup/...

2 个答案:

答案 0 :(得分:1)

错误是如此愚蠢:/班级名称不正确。

Path: Logger/Block/Adminhtml/Logger/Edit.php
Name: Logger_Block_Adminhtml_Loggerbackend_Edit

感谢您的帮助:)

答案 1 :(得分:0)

我相信magento正在寻找一个名为“(Namespace)_Logger_Block_Adminhtml_Logger_Edit”的类,所以你错过了以下文件: /(namespace)/Logger/Block/Adminhtml/Logger/Edit.php