Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cassandra/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Magento在错误的文件夹中查找模板_Magento - Fatal编程技术网

Magento在错误的文件夹中查找模板

Magento在错误的文件夹中查找模板,magento,Magento,您好,我在使用Magento时遇到问题:它无法在主页上找到我请求的模板文件,请使用以下行:{{block type=“profile/profile”name=“profile”template=“profile/news front.phtml”}但是magento给了我错误:无效的模板文件:frontend/base/default/template/profile/news front.phtml 我的news front.phtml文件位于frontend/default/default

您好,我在使用Magento时遇到问题:它无法在主页上找到我请求的模板文件,请使用以下行:
{{block type=“profile/profile”name=“profile”template=“profile/news front.phtml”}
但是magento给了我错误:
无效的模板文件:frontend/base/default/template/profile/news front.phtml


我的
news front.phtml
文件位于
frontend/default/default/template/profile/news front.phtml
为什么magento看不到该文件以及如何在首页显示我的新闻块?

我建议您签出

若它不能回答您的问题,那个么正如您看到的,Magento会尝试在基本包中搜索您的模板。 这意味着要么您没有以下默认文件,要么您的主题在


系统->配置->设计不是“默认值”。

它是
默认值
,但mgento仍然在
base
文件夹中查找文件,而不是
默认值
。如果magento以这种方式查找文件,则表示文件名错误,或者文件不存在,或者该文件有问题。另外,如果有其他主题设置,请检查设计。您找到了这个问题的答案吗?我也有同样的问题 System->Configuration->Design