define一些宏如何使用?
在model或者lib中没法用啊....function test(){
$this->load->library("DebugOut");
}
提示:
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant ABC_CRITICAL - assumed 'ABC_CRITICAL'
Filename: libraries/Loader.php
Line Number: 873 宏定义直接使用, 不需要 ->这样的符号
例如DebugOut ,直接 拿来用echoDebugOut .'something' ; 对,引用宏定义不需要引号。
页:
[1]