开发者

Autoloading all models in CodeIgniter

开发者 https://www.devze.com 2023-04-06 04:53 出处:网络
Are there any disadvantages to just putting all models in $autoload[\'model开发者_C百科\'] instead of loading them only as necessary? You might want to take a look at the CodeIgniter Profiler Class to

Are there any disadvantages to just putting all models in $autoload['model开发者_C百科'] instead of loading them only as necessary?


You might want to take a look at the CodeIgniter Profiler Class to see how your application performs auto-loading all models versus loading them only when needed. I'd recommend looking at execution time and memory usage.

Here is a similar question with some more suggestions for profiling your application. Codeigniter. Autoload models, will things get slower?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号