javascript - <include file="" />里面不能用模板常量吗?

WBOY
Release: 2016-07-06 13:53:57
Original
1200 people have browsed it


file路径不能先定义一个常量define('__STATICS__','./Application/Home/View/Statics/');
貌似这样不能把那个常量解析?

回复内容:


file路径不能先定义一个常量define('__STATICS__','./Application/Home/View/Statics/');
貌似这样不能把那个常量解析?

是可以这样写的 你解析不了常量 可能是你写的有问题 看看是不是单引号 双引号的问题 单引号不能解析变量

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!