i am new for use ajax in cakephp.
my problem is, i want when user add new record to table or update
table,show some div
with some message.
my code:
<?php
echo $html->script('prototype');
echo $html->script('scriptaculous/src/scriptaculous');
echo $ajax-
>form('add','post',array('model'=>'Shorturl','update'=>'UserInfoDiv'));
?>
<fieldset>
<legend><?php __('Add Shorturl'); ?></legend>
<div id='testdiv'>
<?php
echo $this->Form->input('short');
echo $this->Form->input('url');
?>
</fieldset>
<?php echo $ajax->submit('Submit', array('url'=>
array('controller'=>'shorturls', 'action'=>'add'), 'index' =>
'testdiv'));?>
</div>
when i use this code i can add but i cant show some message
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
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