>From the test case(s) for the $ajax->form() helper, the book was wrong
(or at least according to the latest RC2). The correct syntax is:
<?php
// WRONG: $ajax->form('/notes/addquick', 'post',
array('update'=>'notes'));
// RIGHT: (Note: I still don't know what the 'showForm' is for)
echo $ajax->form('showForm', 'post',
array('model' => 'Note',
'url' => array('action'=> 'addquick',
'controller' => 'notes'),
'update' => 'notes_div'));
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---