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 <[email protected]> wrote: > initialize to local variable, $variable = App::import('Controller', > array('example')); > > $variable->method > > On Wed, Sep 9, 2009 at 8:36 PM, Mukhamad Ikhsan <[email protected]>wrote: > > > > > App::import('Controller', array(...)); > > >http://book.cakephp.org/view/531/Importing-Controllers-Models-Compone... > > > On Wed, Sep 9, 2009 at 3:50 PM, [email protected] <[email protected]>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 [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 -~----------~----~----~----~------~----~------~--~---
