TPL模板文件可视化编辑有关问题

WBOY
Release: 2016-06-13 12:50:10
Original
791 people have browsed it

TPL模板文件可视化编辑问题
现在做PHP项目都是挂TPL文件的方式,但是在编辑TPL文件的时候图片和样式文件都替换成了程序路径,这样在DW中编辑的时候就看不到可视化效果. 这个问题怎么弄?
比如Thinkphp中模板文件中的图片或者CSS文件调用路径是用__PUBLIC__/,在DW中要用可视化效果来做节目的时候,图片都显示不出来,当然我可以把这里都设置成绝对路径,但是这样改完界面后发布时又得修改回来。
有没有一些便捷的方式来处理这个问题?谢谢!!


------解决方案--------------------
你就不能建一个名为 __PUBLIC__ 的目录,把的图片或者CSS文件放在里面吗?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!