Re: call function from .ctp file in cakephp1.2

2009-07-21 Thread j0n4s.h4rtm...@googlemail.com
Issac is right. In General: Use requestAction and Elements Use an existing Cake Helper Create a custom Helper On Jul 21, 4:05 am, Isaac Raja wrote: > Please mention what you are trying to achieve; we can find a better way to > do it. > > Isaac > > On Tue, Jul 21, 2009 at 2:49 AM, Marcelo Andrad

Re: call function from .ctp file in cakephp1.2

2009-07-20 Thread Isaac Raja
Please mention what you are trying to achieve; we can find a better way to do it. Isaac On Tue, Jul 21, 2009 at 2:49 AM, Marcelo Andrade wrote: > > On Mon, Jul 20, 2009 at 2:02 AM, liyakat Ali wrote: > > i need to call function from .ctp file. > > And function is defined in App Controller. > >

Re: call function from .ctp file in cakephp1.2

2009-07-20 Thread Marcelo Andrade
On Mon, Jul 20, 2009 at 2:02 AM, liyakat Ali 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 i

Re: call function from .ctp file in cakephp1.2

2009-07-20 Thread Rob Conner
It's probably possible, but doing so would break the MVC conventions that CakePHP is built around. Perhaps re-assess how you are solving the problem and attempt to find a solution that follows MVC guidelines. --~--~-~--~~~---~--~~ You received this message because y

Re: call function from .ctp file in cakephp1.2

2009-07-20 Thread Pixelastic
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 wrote: > i need to call function from .ctp file. > > And funct

call function from .ctp file in cakephp1.2

2009-07-20 Thread liyakat Ali
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 cake-php@googl