You do that with $this->redirect...

Jeremy Burns
Class Outfit

[email protected]
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 does), from within a controller, and then render the output....
> 
> 
> So
> 
> /nodes/view/<section>/<resource>
> 
> Looks up the Nodes table, for a resource.
> the resource record contains Controller and Action for that resource, and 
> control is handed to that control/resource....
> 
> The URL to the end user looks like /nodes/view/section/resource, but 
> internally its hitting /pages/display/about for arguments sake.
> 
> Simillar i guess to setAction, but more like a setControllerAndAction if such 
> a beast ever existed.
> 
> 
> 
> On Mon, Dec 27, 2010 at 9:15 PM, Jeremy Burns | Class Outfit 
> <[email protected]> wrote:
> 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
> Class Outfit
> 
> [email protected]
> http://www.classoutfit.com
> 
> On 27 Dec 2010, at 10:31, Greg Skerman wrote:
> 
>> 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 <[email protected]> wrote:
>> 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 <[email protected]> wrote:
>> 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 others 
>> with their CakePHP related questions.
>>  
>> 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
>> 
>> 
>> 
>> Check out the new CakePHP Questions site http://cakeqs.org and help others 
>> with their CakePHP related questions.
>>  
>> 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
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> 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

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to