Can I declare a variable or global variable which is accessible in all files whether controller,model,view and set a value for it when call it from the current file??
1条回答 默认 最新
- doushi7314 2017-07-21 17:03关注
You can create a core controller (MY_Controller) and initiate all your variables there and have you controllers extend MY_Controller instead of CI_Controller
解决 无用评论 打赏 举报