jiayidan6 发表于 2015-9-9 12:36:44

CI框架下如何调用函数constant()

系统入口文件中有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()函数,请高手指教下!先谢谢了!

Closer 发表于 2015-9-9 13:37:50

BASEPATH
BASE_PATH

jiayidan6 发表于 2015-9-10 10:30:14

谢谢!
页: [1]
查看完整版本: CI框架下如何调用函数constant()