Thanks Chris. Yes, I've looked throughout, but the only answers I've
found pertain to changing DIVs in one layout.
Have a nice day.
On Jun 21, 1:03 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi all,
>
> > I'm a bit of a newbie here so sorry if this is obvious. I'm trying to
> > update two DIVs that are in two different layouts using an ajax link
> > like this:
>
> > $ajax->link('link text', '/showdowns/vote/', array('update' =>
> > array('statBox','showDown')), null, FALSE);
>
> > I'm using 1.2.x.
>
> > Then in my controller, I gather the data and have:
>
> > // use ajax layout
> > $this->render('index', 'ajax');
>
> > It works fine if I move both DIVs into the 'index.ctp' layout.
> > However, I'd like to have one of these DIVs in my default.ctp layout
> > so that it can be used for other functions throughout the
> > applications. Sort of a stats box.
>
> > So if I put the statBox into the default.ctp layout it isn't updated
> > anymore. I tried this:
>
> > $this->render(array('default','index'), 'ajax');
>
> > But no luck.
>
> > Anyone come across this before?
>
> > Thanks!
> > Wilson
>
> It's the attack of the help vampires!
>
> Search this google group and you will find several threads dedicated
> to this topic.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007: "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---