On Mon, Jul 20, 2009 at 2: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.
As Pixelastic and Rob both said, if you have to call some method in your view, this method is best suited to be placed in a helper and not in your controller. Check this out: http://book.cakephp.org/view/101/Creating-Helpers Best regards. -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
