我已經將我的全局常量存儲在config-> constants.php中,但它創建問題並拋出錯誤 我已經定義了它,像這樣,如何在控制器中調用它, 代碼如何定義constants.php中codeigniter的全局常量
define('SuperAdmin','1');
define('Admin','2');
define('CityAdmin' '3');
define('SupportAdmin','4');
define('RestaurantUser','5');
define('FrontUser','6');
define('Other','7');
你會得到什麼錯誤?! – deceze
當我把在汽車負載constabnts 嚴重性:注意 消息:恆FILE_READ_MODE已經定義 文件名:配置/ constants.php 行號:...爲常量定義的所有常量產生16這樣那樣的錯誤.php –
最後 您的applicationfiles/config/constants.php文件看起來不包含有效的配置數組。 –