Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CakePHP 在哪里存储模型实例,或者我如何获取已经加载的所有模型的列表?
我知道
App::objects('model');
但这只是列出了所有可用的模型......
ClassRegistry保存加载的模型实例。所以ClassRegistry::keys()就是你要找的。
ClassRegistry