Hi,
I have two divs
1- menucardapio
2- cardapioclique
I'm using this code to update the div menucardapio:
<li><a href="#"> <?php echo $ajax->link('Monte', '/monte',
array('update' => 'menucardapio')
);
?></a></li>
<?php echo $ajax->div('menucardapio'); ?>
...
<?php echo $ajax->divEnd('menucardapio'); ?>
It works for one div, but not two.
What I need to do is to update the div menucardapio and the div
cardapioclique at the same time.
For updating menucardapio is use the MonteController with the method
"index"
function index()
{
$this->set('title', 'Monte');
$ingredientes =
$this->Monte->findAll(null,null,('Monte.id ASC'));
$this->set('ingredientes', $ingredientes );
$this->render('index', 'ajax');
}
For updating the cardapioclique I need to use the CardapioController
with the method "monte"
function monte()
{
$this->set('title', 'Monte');
$data1 = "CLIQUE";
$this->set('data1', $data1 );
$this->render('index', 'ajax');
}
How can I do this?
Regards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---