Saturday, October 4, 2008

Re: Custom views based on action parameters?

No sorry thats not what I'm looking for, basically I want to use more then 1 view for a single action, I already sorted on how to change views for an action based on its parameter, but how do I manage to do the same thing but with more then one view, a guy on IRC said something about "Partial Views", google didn't turn up with any results.

On Sat, Oct 4, 2008 at 10:47 AM, GrandiJoos <GrandiJoos@gmail.com> wrote:

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.




--
Join cleanscript.com Come here for professional PHP coding.

--~--~---------~--~----~------------~-------~--~----~
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: