当前位置: 代码迷 >> PHP >> thinkphp 模板有关问题 为何不编译
  详细解决方案

thinkphp 模板有关问题 为何不编译

热度:51   发布时间:2016-04-28 19:41:30.0
thinkphp 模板问题 为何不编译


 <{if condition="empty($customers)"}>
            <table class="table_a" border="1" width="100%">
                <tbody>
                    <tr style="font-weight: bold;">
                        <td>编号</td>
                        <td>电话号码</td>
                        <td align="center"colspan="2">
                            <center>操作</center>
                        </td>
                    </tr>
                   <{foreach name="customers" item="customers_one"}>
                        <tr>
                            <td>
                                <{$customers_one.c_id}>
                            </td>
                            <td>
                               <{$customers_one.c_phone}>
                            </td>
                            <td>
                                <a href="">查看</a>
                            </td>
                            <td>
                                <a href="">删除</a>
                            </td>
                        </tr>
                   <{/foreach}>
                   
                </tbody>
            </table>
        <{else /}>
            <tr>
                <td align="center"colspan="2">
                    <center>还没有玩家...</center>
                </td>
            </tr>
        <{/if}>



这段代码执行之后



模板开始和结束编辑我改了的

'TMPL_L_DELIM'          =>  '<{',            // 模板引擎普通标签开始标记
    'TMPL_R_DELIM'          =>  '}>',            // 模板引擎普通标签结束标记