Home > Backend Development > PHP Tutorial > TP框架关于定义常量地址的有关问题

TP框架关于定义常量地址的有关问题

WBOY
Release: 2016-06-13 12:21:51
Original
804 people have browsed it

TP框架关于定义常量地址的问题
麻烦各路英雄帮忙看看,谢谢




------解决思路----------------------
TP 很讨厌,带坏了一大批人

php 的常量是不能放到字符串中的!
放到字符串中就是字符

TP 用字符串替换制造的伪常量,迷惑了很多人
------解决思路----------------------
用上面的代码{$Think.const.IMG_URL} 输出是什么?

http://www.thinkphp.cn/topic/10043.html

看看config文件里是否有定义了?

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