Yes, if you render() or redirect() mid-action, the rest of the action will execute after the view is rendered or the header is written, respectively. If you don't want that to happen, you should either return; or exit();
On Apr 16, 10:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > if I use render() ,does the rest codes in action exec? > if so,do I need to do return after render()? > > what about redirect()?does the codes after redirect() in action exec? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
