【发布时间】:2023-03-16 23:25:02
【问题描述】:
我在我的 cms 主页中添加了以下代码
{{block type="catalogsearch/advanced_form" name="catalogsearch_advanced_form" template="catalogsearch/advanced/form.phtml"}}
它在主页上很好地显示了表单,但是每当我搜索任何东西时,它都会给我以下错误:
哎呀,我们的坏... 未找到您请求的页面,我们可以猜到原因。
If you typed the URL directly, please make sure the spelling is correct.
If you clicked on a link to get here, the link is outdated.
我也在页面模板中尝试过,但出现同样的错误
<?php echo $this->getLayout()->createBlock('catalogsearch/advanced_form')->setTemplate('catalogsearch/advanced/form.phtml')->toHtml() ?>
【问题讨论】:
-
这对我来说很好link
标签: php magento magento-1.9 advanced-search