Saturday, October 4, 2008

Re: Custom views based on action parameters?

Maybe what he meant was that, depending on some values, you choose
which 'partial view' you would like to include next?
Like you would have a page build up out of 3 elements and f.i. the
middle one changes depending on some values. How to do that exactly I
don't know, sorry.

GrandiJoos

On 4 okt, 17:50, "Lamonte(Scheols/Demonic)" <sche...@gmail.com> wrote:
> 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 <GrandiJ...@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: