Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从选中的复选框中获取值
在表单提交后,所有数据都存储在$this->data(只读)或$this->request->data(可以修改)中。将上述内容包装$this->data在debug()调用中以查看返回数据的结构。它可能大致如下所示:
$this->data
$this->request->data
debug()
array( 'ModelName' => array( 'name' => 'value', 'name' => 'value' ) )