Well whats the problem with putting it in the AppController? Its your
application, so it should be no problem in being global and having
someone "access" it.

If its an action that outputs the same view and contents, then perhaps
you should rethink how it works.

On Sep 10, 1:09 am, Tokasa <toka...@gmail.com> wrote:
> Hi Miles,
> What is wrong on Mukhamad's idea?
>
> But what would you suggest, if you'd like to call some other
> controller's method but you dont want to put it globaly in
> app_controller??
>
> Thanks
> Tomas
>
> On Sep 9, 6:18 pm, Miles J <mileswjohn...@gmail.com> wrote:
>
> > 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