Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- シンプル版 -->
<?php
$options = array(
'nonuse' => '使用しない'
, 'use' => '使用する'
);
echo $this->Form->input("sample-input-name", array('type' => 'radio', 'before' => 'サービスShop', 'options' => $options));
?>
<!-- DTDL版 -->
<dt>サンプル項目</dt>
<dd>
<?php
$options = array(
'nonuse' => '使用しない'
, 'use' => '使用する(通常)'
, 'simple' => 'シンプル版'
);
echo $this->Form->input("sample-input-name", array('type' => 'radio', 'label' => true, 'options' => $options));
?>
</dd>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment