0

Cake 2.x のラジオボタンに個別のクラスオプションはありますか?

私の意見では、論理的なアプローチは次のようになります。

<div class="input radio required">
    <?php 
        $options = array(
            array('1' => 'Kuchen', 'class' => 'cake'),
            array('2' => 'Kekse', 'class' => 'biscuits'),
            array('3' => 'Eis', 'class' => 'iceCream'),
        );
        $attributes = array(
            'legend' => false,
            'default' => '1'
        );
        echo $this->Form->radio('INCOMETYPE', $options, $attributes);
    ?>
</div>

しかし、それはうまくいきません。お役に立てれば幸いです。ありがとう :)

4

1 に答える 1