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
-~----------~----~----~----~------~----~------~--~---

Reply via email to