2014-12-31 17 views
-2

我已經在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 

這裏是我的customer.php文件內容

<?php 
class Istockphp_Customerpage_Block_Customer extends Mage_Core_Block_Template 
{ 

} 
+2

您能分享您的「Customer.php」文件嗎? –

+1

發佈'/ Customer.php'的前幾行 – Sean

+0

@Sean我編輯了我的文章 – Shin

回答

0

根據您所關注的鏈接,阻止文件customer.php如下所示。

<?php 

class Istockphp_Customerpage_Block_Customer extends Mage_Customer_Block_Account_Dashboard { 

} 

它擴大了Mage_Customer_Block_Account_Dashboard。但在上述文件中,您正在擴展Mage_Core_Block_Template ..