這是我已經把目錄/產品/ view.phtml行:我想在Magento顯示產品頁面上的麪包屑,但它給了我一個致命錯誤
<?php echo $this->getLayout()->getBlock('breadcrumbs')->toHtml(); ?>
這是錯誤我得到:
Fatal error: Call to a member function toHtml() on a non-object in ../catalog/product/view.phtml on line 159
對此的任何解決方案?我運行Magento的1.4.1.1
我已經這樣做了,我不再有任何錯誤了。然而,麪包屑仍然沒有出現。 –
確保在CMS中打開了麪包屑。我認爲這是Web Tab> Configuration> General。 (切換到您的商店視圖) – phpisuber01
是的,麪包屑打開,只是檢查 –