If you have to call a controller method from a view, you're (very) probably doing it wrong.
Can't you just pass the result of your function to the view using $this->set() in your controller's action ? On Jul 20, 7:02 am, liyakat Ali <[email protected]> wrote: > i need to call function from .ctp file. > > And function is defined in App Controller. > > is it possible. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
