Well in what circumstances would you need to know if its from a plugin or not? You should know right off the bat when you are calling the model, like Plugin.ModelName.
On Sep 9, 9:08 am, Jamie <[email protected]> wrote: > OK - I can't figure out if I'm missing something really obvious (quite > possibly), or if the functionality just isn't there. Basically, my > issue is figuring out whether a model belongs to a plugin at runtime. > I've got some common functionality in a behavior that is attached to > almost every model in my application. Most of these models are in > plugins. For example, I've got a "clubs" plugin with a "club" model. I > can't seem to see any model property (via the Model class, debug > ($this) in a callback, etc.) that says that "Club" belongs to the > "clubs" plugin. I would've thought that, since the core goes plugin-by- > plugin initializing models, it would record somewhere in each model > whether that model belongs to a plugin. But... > > - Jamie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
