Ok here are the details :
My tests are based on the TASKS tutorial Ajax sample, basically I when
I press Done on a task, I would like to make disappear the menu...
the layout, the menu goes into the block_2 div :
<div id="wrapper">
<?php $this->requestAction('/tasks/menu/'. (isset($b1) ? $b1 : '0'));
?>
<div id="block_2">
</div>
<div id="content">
<h2> </h2>
<?= $content_for_layout ?>
</div>
</div>
This is the action :
function menu($value)
{
$this->log("b1 value = ".$value);
$this->render('menu', 'ajax');
}
this is the view:
<div id="menu_done">
<?php
print '<div>'.$html->link("New Application", null, array("class" =>
"lnkfree")).'</div>';
print '<div>'.$html->link("New Simulation", null, array("class" =>
"lnkfree")).'</div>';
?>
</div>
Note that I did not handle the case were the values passed in the
action is 0 and I sould make the menu diseapper..
Thanks a lot for your help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---