you can wrap your render command in a conditional that tests if the method is being called as part of a request action
check this thread for hints <http://groups.google.com/group/cake-php/browse_thread/thread/45e159f199b67465/681eabcb9a6c3def?lnk=gst&q=requestAction+phpnut&rnum=2#681eabcb9a6c3def> the key is phpnut's comment if($this->params['requested'] === true){ // do your thing here } On 9/26/07, kgrimm <[EMAIL PROTECTED]> wrote: > > Hello, > > I need to make a controller call from within another controller. The > controller I want to call has a render command. I tried to use > requestAction, but as I'm using ajax for displaying the content in my > layout all the layout is getting mixed up. Redirect isn't working > either. Are there any other alternatives? > > Many thanks, > > kgrimm > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
