【发布时间】:2016-02-24 17:11:05
【问题描述】:
<th scope="col">{{ d.id }} <input type="checkbox" value="{{ d.id }}" name="checkboxD" class="checker"></th>
如何从选中的复选框中获取值列表??
我的控制器操作
public function traiterAction() {
$IDs = array();
if ( $this->getRequest()->isMethod('POST') ) {
$IDs = $this->getRequest()->get('checkboxD');
}
return $this->render('@EgovPoste/test.html.twig',array('ids'=>$IDs));
}
【问题讨论】:
标签: symfony symfony-2.6