在下面引用的时候引用不到
<code>define("SITE_URL","localhost");define("CSS_URL", SITE_URL."/a/shop/public/css/");</code>
<code><link hre<i>1本文来#源gaodai$ma#com搞$代*码*网</i><pre>搞代gaodaima码
f=”{$Think.const.CSS_URL}style.css” rel=”stylesheet” type=”text/css” />
回复内容:
在下面引用的时候引用不到
<code>define("SITE_URL","localhost");define("CSS_URL", SITE_URL."/a/shop/public/css/");</code>
<code><link href="{$Think.const.CSS_URL}style.css" rel="stylesheet" type="text/css" /></code>
正确的使用方法是请在框架的入口文件中定义常量。<link href=”{CSS_URL}style.css” rel=”stylesheet” type=”text/css” />
我试过了是可以的啊,你是不是把定义放在使用后边了