Re: Handing control over to another controller without redirect or requestAction.

2010-12-28 Thread Vivi Vivi
Set $view->viewPath='controller'; On Tue, Dec 28, 2010 at 9:02 AM, Greg Skerman wrote: > Ok so i've gotten as far as instantiating the target controller (i assume > this is the right approach...) > > how do I render its output from another controller??? > > > > > On Mon, Dec 27, 20

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Greg Skerman
Ok so i've gotten as far as instantiating the target controller (i assume this is the right approach...) how do I render its output from another controller??? On Mon, Dec 27, 2010 at 9:35 PM, Greg Skerman wrote: > I should explain a bit better > > What i'm trying to do is allow the admini

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Greg Skerman
I should explain a bit better What i'm trying to do is allow the administrator of the site to manage the URL structure, without having to expose them to the routes file which would require programming experience or basic understanding of how the router works to operate. The Admin would decide

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Greg Skerman
but $this->redirect will change the URL will it not? On Mon, Dec 27, 2010 at 9:25 PM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > You do that with $this->redirect... > > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http://www.classoutfit.com >

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Jeremy Burns | Class Outfit
You do that with $this->redirect... Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 27 Dec 2010, at 11:22, Greg Skerman wrote: > Not actually after a redirect, > > I'm trying to hand control to another controller (in a simillar way to what > request action

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Greg Skerman
Not actually after a redirect, I'm trying to hand control to another controller (in a simillar way to what request action does), from within a controller, and then render the output So /nodes/view// Looks up the Nodes table, for a resource. the resource record contains Controller and Actio

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Jeremy Burns | Class Outfit
Happy to be corrected, but I think browser mechanics mean that everything will be lost when you do a redirect. The best solution is to store the stuff you want transferred in the session and retrieve it in the other action. You can also pass small amounts of data as a parameter. Jeremy Burns Cl

Re: Handing control over to another controller without redirect or requestAction.

2010-12-27 Thread Greg Skerman
Anyone got any idea? sorry if this is a completely newb question... Open to suggestions if its a downright stupid idea.. On Mon, Dec 27, 2010 at 12:17 PM, Greg Skerman wrote: > Yeah that will only work inside the same controller, where I am trying to > hand control from one controller to a

Re: Handing control over to another controller without redirect or requestAction.

2010-12-26 Thread Greg Skerman
Yeah that will only work inside the same controller, where I am trying to hand control from one controller to another. Anyone? On Mon, Dec 27, 2010 at 5:48 AM, huoxito wrote: > The controller class has a setAction() function which *Internally > redirects one action to another. Does not perf

Re: Handing control over to another controller without redirect or requestAction.

2010-12-26 Thread huoxito
The controller class has a setAction() function which *Internally redirects one action to another. Does not perform another HTTP request unlike Controller::redirect()* but it I guess it only works within the same controller ... Check out the new CakePHP Questions site http://cakeqs.org and help

Handing control over to another controller without redirect or requestAction.

2010-12-26 Thread Greg Skerman
I am working on a simple content management system. The basic concept revolves around having a nodes controller, which allows the admin of the site to create sections which contain content. The content can be a page (using the file based pages controller that ships with the framework), an article