2012-06-15 57 views
1

的index.php包括一些模块的网页,_head.tpl一个页面,_foot.tpl智者包括文件,动态内容

的index.php:

<{include file="_head.tpl"}> 
.... 
<php? 
    .... 
?> 
<{include file="_footer.tpl"}> 

_head.tpl

<html> 
<head></head> 
<body> 
<{include file="$baseUrl/menu/index"}> 
..... 

打开网址时:www.test.com/index显示“http 500 error”

打开网址:www.test.com/menu/index可以获取动态内容。将列表内容复制到“_head.tpl”而不是smarty句子(< {include file =“$ baseUrl/menu/index”}>),“www.test.com/index”显示好。

+0

请更清楚。 –

回答