我正在尝试使用表单助手创建一个表单并在操作中传递 id。我想要这样:
<form action="menus/recusar/2>
<?php echo $this->Form->create('Menus', array('action' => 'recusar', $id)) ?>
<?php echo $this->Form->end('Submit') ?>
结果:
<form action="/societario/menuses/recusar" 2="2" id="MenusRecusarForm" method="post" accept-charset="utf-8">