Do not listen to Mukhamad Ikhsan, that way is extremely wrong.

Simply place the method you want to use in the AppController, or
within a component.

On Sep 9, 6:38 am, Mukhamad Ikhsan <ikhsan.o...@gmail.com> wrote:
> initialize to local variable, $variable = App::import('Controller',
> array('example'));
>
> $variable->method
>
> On Wed, Sep 9, 2009 at 8:36 PM, Mukhamad Ikhsan <ikhsan.o...@gmail.com>wrote:
>
>
>
> > App::import('Controller', array(...));
>
> >http://book.cakephp.org/view/531/Importing-Controllers-Models-Compone...
>
> > On Wed, Sep 9, 2009 at 3:50 PM, toka...@gmail.com <toka...@gmail.com>wrote:
>
> >> Hi, how can I call method from another controller?
>
> >> I have read somthing about requestAction(...) but in help they say ...
> >> "It is rarely appropriate to use in a controller or model."
>
> >> Is there other better way??
>
> >> Thanks
> >> Tomas
>
> --
> Mukhamad Ikhsan
> +6281572181283
> Y!id:ikhsan.onlyhttp://www.diodachi.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to