grigri had a nice clean solution for this: http://bin.cakephp.org/saved/38624
On Apr 9, 12:13 am, Joe Critchley <[email protected]> wrote: > You should probably use the ClassRegistry class. > > You can instantiate an unrelated model by doing the following: > > $ModelName = ClassRegistry::init('ModelName'); > > ... and then use the functions from that variable, e.g... > > $ModelName->delete($id); > > Hope this helps. > > On Apr 8, 10:55 pm, lemp <[email protected]> wrote: > > > I’m building a statistical application and I need to access a function > > that return reference values from a model that is unrelated with the > > model where I need this data. > > > What is the best way to achieve this? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
