syntax error in magento module

I have created a new page in magento as

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

It is working fine in my local machine,But it returns an error in my live server when i try to load that page

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

Here is my customer.php file contents

<?php
class Istockphp_Customerpage_Block_Customer extends Mage_Core_Block_Template
{

}

As per the link you are following, the Block file customer.php is as follows.

<?php

class Istockphp_Customerpage_Block_Customer extends Mage_Customer_Block_Account_Dashboard  {

}

It is extending the Mage_Customer_Block_Account_Dashboard . But in the above file you are extending the Mage_Core_Block_Template ..

链接地址: http://www.djcxy.com/p/65188.html

上一篇: Magento管理页面返回404

下一篇: magento模块中的语法错误