### 模板替换
在进行模板输出之前,系统还会对渲染的模板结果进行一些模板的特殊字符串替换操作,也就是实现了模板输出的替换和过滤。
~~~
__ROOT__ 会被替换成当前网站的网站根目录 http://localhost/
~~~
### 实例
~~~
fetchI am __ROOT__/application/example/view/ViewExample/includeExample.html
~~~
解析后的编译文件
~~~
fetchI am header.html
I am <?php echo __ROOT__; ?>/application/example/view/ViewExample/includeExample.html
I am footer.html
~~~
最终输出
~~~
fetchI am header.html
I am http://localhost/aaphp_blog/application/example/view/ViewExample/includeExample.html
I am footer.html
~~~
最后
以上就是纯真诺言最近收集整理的关于php替换短信常量的值,常量替换 · AAPHP开发手册 · 看云的全部内容,更多相关php替换短信常量的值,常量替换内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复