如何在 magento 的页面上显示面包屑?
我想在 1column.phtml 页面上显示面包屑。 我尝试了以下
<?php echo $this->getLayout()->getBlock("breadcrumbs")->toHtml()?>
但它给了我以下错误。
Fatal error: Call to a member function toHtml() on a non-object
那么我应该怎么做才能在我的页面上显示面包屑呢?
I want to display the breadcrumbs on 1column.phtml pages.
I tried the following
<?php echo $this->getLayout()->getBlock("breadcrumbs")->toHtml()?>
But it gives me the following error.
Fatal error: Call to a member function toHtml() on a non-object
So what should I do for displaying the breadcrumbs on my pages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个问题在许多论坛中都提出并解决了。我认为这对您有用
文件路径
查找
替换为
This question is raised and solved in many forums.I think this will work for you
File path
Find
Replace with