Magento模块中的语法错误


syntax error in magento module

我在magento中创建了一个新页面,作为

http://istockphp.com/magento/adding-custom-page-to-the-customer-account-dashboard/

它在我的本地机器中工作正常,但是当我尝试加载该页面时,它会在我的实时服务器中返回错误

Parse error: syntax error, unexpected 'Istockphp_Customerpage_Block_C' (T_STRING) in 
/home/public_html/app/code/local/Istockphp/Customerpage/Block/Customer.php on line 1

这是我的客户.php文件内容

<?php
class Istockphp_Customerpage_Block_Customer extends Mage_Core_Block_Template
{
}

根据您关注的链接,块文件customer.php如下所示。

<?php
class Istockphp_Customerpage_Block_Customer extends Mage_Customer_Block_Account_Dashboard  {
}

它正在扩展Mage_Customer_Block_Account_Dashboard。但是在上面的文件中,您正在扩展Mage_Core_Block_Template..