Hi there This would be way easier to answer if you would post the code where you define the function and where you call it. Generally you would call such a function like this: $this->User->MYFUNC()
$this is the Userscontroller, the controller has the attached model as property, so you can access the model with $this->User and then you call the function on the model: $this->User->MYFUNC() If that does not work for you, post some code. Claudia On Mar 4, 6:09 am, yohann305 <[EMAIL PROTECTED]> wrote: > hey poeple, > this is the first time i ask something in here. > neway, here is the deal. > I'm defining a function MYFUNC inside the User model. > Then i try to call it from a function INDEX inside the controller, and > i get the "Call to undefined function:" message > > There is a scope problem isnt it? > whats the solution, pretty please --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
