2012-06-15 59 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

請更清楚。 –

回答