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