您好,登錄后才能下訂單哦!
thinkPHP重寫模板方案:
方案一:(以傳變量形式替換)
<include file="header" title="ThinkPHP框架" keywords="開源WEB開發(fā)框架"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>[title]</title>
<meta name="keywords" content="[keywords]" />
</head>
方案二:(以模板方式重寫,版本在3.1.2以上支持)
base.tpl
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<block name="title"><title>標題</title></block>
</head>
<body>
<block name="menu">菜單</block>
</body>
</html>
<extend name="base"/>
<block name="title"><title>???</title></block>
<block name="menu">
???信息
</block>
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。