cakephp-2.x

cakephp 2 ajax form

删除回忆录丶 提交于 2019-11-28 04:41:56
问题 I'm having trouble building an ajax form in cakephp 2 which obviously has changed a lot since 1.3. I'm using the following code: <div id="commentForm"> <div id="commentStatus"></div> <?php echo $this->Form->create('Comment', array('action' => 'save', 'default' => false)); echo $this->Form->input('Comment.comments_name'); echo $this->Form->input('Comment.comments_email'); echo $this->Form->input('Comment.comments_text'); echo $this->Js->submit('Save', array('update' => '#commentStatus')); echo