[英]CakePHP Manipulate more than one models in the same controller
Problem: 问题:
When I use ClassRegistry::init
to initialize plugin2 and call the plugin2.mod, it is calling plugin1.mod! 当我使用ClassRegistry::init
初始化plugin2并调用plugin2.mod时,它正在调用plugin1.mod! Can somebody tell me what wrong here is? 有人可以告诉我这里有什么问题吗?
Thank you. 谢谢。
in 2.0 this is not possible (anymore). 在2.0中,这是不可能的了。 class paths are cached (inside App class) and therefore can use a class name only once. 类路径被缓存(在App类内部),因此只能使用一次类名称。
You need to use different class names. 您需要使用不同的类名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.