用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1119|回复: 2
收起左侧

[已解决] CI框架下如何调用函数constant()

[复制链接]
发表于 2015-9-9 12:36:44 | 显示全部楼层 |阅读模式
系统入口文件中有define('BASEPATH', str_replace('\\', '/', $system_path));
我自定义了如下
       //定义产品路径
         define('PRO_PATH', constant('BASE_PATH').'/temp/productions/');
但调试的时候报错:
Warning: constant() [function.constant]: Couldn't find constant BASE_PATH


有好多地方都要用到constant()函数,请高手指教下!先谢谢了!

发表于 2015-9-9 13:37:50 | 显示全部楼层
BASEPATH
BASE_PATH

本版积分规则