[英]how to detect model belongs to which plugin in cakephp?
How to detect in AppModel, model that is loaded, belong to which plug-in? 如何在AppModel中检测到,加载的模型属于哪个插件?
EDIT: 编辑:
When I check model name or other details in AppModel, there is no difference between the model loaded from the main program and a model that within the plugin loaded. 当我检查AppModel中的模型名称或其他详细信息时,从主程序加载的模型与加载的插件中的模型之间没有区别。 I need to know if model belongs to the plugin to do some operation on it.
我需要知道模型是否属于插件才能对其进行一些操作。
You can find the name of your model being used by checking the Model::name property. 您可以通过检查Model :: name属性找到正在使用的模型的名称。 It gets set for you.
它为您设置。
If that's not what you're after, please edit your question. 如果那不是您想要的,请编辑您的问题。 Your objective is a little unclear.
您的目标还不清楚。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.