You shouldn't redirect from a model as a model should only be dealing
with data, not page logic.

You should be doing the redirect in your controller.

What are you redirecting for anyway? If you redirect after finding
data, you'll lose that data and have to find again.

On Apr 30, 11:36 am, avairet <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Is it possible to redirect from the Model?
> I would like to redirect in an specific action from "afterFind()"
> callback... but if I set "return false" in this callback, like it's
> possible in "beforeSave()", I can't redirect!
>
> Thanks by advance for your ideas.
>
> BR
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to