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错误”
打开网址: www.test.com/menu/index 可以获得动态内容。将列表内容复制到“_head.tpl”而不是智能句子(&lt; {include file =“$ baseUrl / menu / index”}&gt; ),“ www .test.com / index “显示得很好。
答案 0 :(得分:0)
你不能直接具体这样。你必须使用php file_get_contents或Curl。
获取内容