thinkPHP重写模板方案:


    方案一:(以传变量形式替换)
   

    <include file="header" title="ThinkPHP框架" keywords="开源WEB开发框架"/>

    <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>