$this->render('view_name') is correct way and it is up to you which
view name you will pass to render() method. Another way would be
override render() action in your controller (and call parent method
with an argument from it).
--~--~-~--~~~---~--~~
You received thi
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
Got it.
On 10/6/08, Fran Iglesias <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> El 04/10/2008, a las 17:41, Lamonte escribió:
>
> > How do you do it.
>
>
> controller->render('view_name');
>
>
> --
> Fran Iglesias
> [EMAIL PROTECTED]
>
>
>
>
>
> >
>
--
Join cleanscript.com Come here for professional
Hi,
El 04/10/2008, a las 17:41, Lamonte escribió:
> How do you do it.
controller->render('view_name');
--
Fran Iglesias
[EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To
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 <[EMAIL PROTECTED]> wrote:
> How do you switch "views" within a contro
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,
Okay so I got it working using $this->render(view) from someone in the IRC,
how do I work with multiple views ?
On Sat, Oct 4, 2008 at 10:41 AM, Lamonte <[EMAIL PROTECTED]> wrote:
>
> How do you switch "views" within a controller action? I have something
> setup like the following example.com/use
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.