Home >php教程 >php手册 >用于前台调用ThinkPHP小脚本

用于前台调用ThinkPHP小脚本

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 11:41:231195browse

Html页面调用ThinkPHP小脚本样例
这里主要实现在View下的html页面调用后台的PHP代码:
Index page:<p>this is TestTemplate index page!</p> <br> <a>">ace Template</a><br><br> <a>">admin02 Template  wysiwyg-color.css 未找到 存在隐患</a><br><br> <a>">akiraIndex Template</a><br><br> <a>">ariesIndex Template</a><br><br> <a>">baMasterIndex Template</a><br><br> <a>">seenIndex Template</a><br><br> <a>">simpliqIndex Template</a><br><br> <a>">ace Template</a> 注意 : U('TestTemplate/Index/aceIndex') }> 加粗部分为在配置文件修改。
在ThinkPHP/Conf/convention.php 默认配置为
 'TMPL_L_DELIM'          =>  '{',            // 模板引擎普通标签开始标记<br>     'TMPL_R_DELIM'          =>  '}',            // 模板引擎普通标签结束标记 为了区分{} 我在项目文件夹下,修改了给配置项为
'TMPL_L_DELIM'          =>  '     'TMPL_R_DELIM'          =>  '}>',            // 模板引擎普通标签结束标记 以上仅为个人备忘。还希望多提宝贵意见。

AD:真正免费,域名+虚机+企业邮箱=0元

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn