Home  >  Article  >  Backend Development  >  模板不需要编译后文件,怎么处理

模板不需要编译后文件,怎么处理

WBOY
WBOYOriginal
2016-06-13 13:10:061217browse

模板不需要编译后文件,怎么办?
一般模板文件需要编译,然后include "编译后的文件"
现在不想使用这种方法。
怎么才能获得



test



用php执行后的结果那?

------解决方案--------------------
用缓冲区获取内容 ob_start() ob_end_flush()
------解决方案--------------------
原始php
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