0

我对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/...
4

2 回答 2

2

错误太愚蠢了:/类名不正确。

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

感谢所有帮助:)

于 2012-08-14T07:56:11.737 回答
0

我相信 magento 正在寻找一个名为:' (Namespace)_Logger_Block_Adminhtml_Logger_Edit'的类,因此您缺少以下文件: /(namespace)/Logger/Block/Adminhtml/Logger/Edit.php

于 2012-08-13T15:05:39.963 回答