Saturday, October 4, 2008

Re: Custom views based on action parameters?

Would a simple redirect suffice?

Then you could something like $this->redirect('controller/action',
null, true);
In your case $this->redirect('profile/edit', null, true);

Hope this helps.

GrandiJoos

On 4 okt, 17:41, Lamonte <sche...@gmail.com> wrote:
> How do you switch "views" within a controller action? I have something
> setup like the following example.com/users/profile then I might want
> to do example.com/users/profile/edit I want to change views inside the
> profile action based on the parameter which is set, possible? It yes,
> How do you do it.
--~--~---------~--~----~------------~-------~--~----~
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 cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: