On Fri, Sep 18, 2009 at 9:42 AM, Henrik Gemal <[email protected]> wrote:
>
> I have a function need to call both from the controller and from two
> models.
>
> How do I share that function between both the controller and the
> models?

Don't think this way.  Controllers are controllers and
models are models.  You can put your method in
a model an make the controller use that model and
then you can call it.

Best regards.

--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105

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