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.
問題は、リチウムが ID に応じて名前を設定することです。 名前が異なる場合、ラジオ グループをグループ化することはできません。
また、グループをネストするためにネストしようとすると、フィールドの ID が異なるために名前が異なるという同じ問題が発生するため、問題が発生するため、form->radio を使用しても役に立ちません。
FWIW、彼らはごく最近それを修正しました[1]。テストをチェックして、使用方法を確認してください
$this->form->radio('foo', array('value' => 'nose')); $this->form->radio('foo', array('checked' => true, 'value' => '1'));
[1] https://github.com/UnionOfRAD/lithium/pull/308