FormHelper Radio with specific HTML Tags

Hi together,

i tryed to build a radio form controll wich include this HTML structur:

    <div class="form-check form-check-radio form-check-inline">
      <label class="form-check-label">
        <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1"> 1
        <span class="circle">
            <span class="check"></span>
        </span>
      </label>
    </div>
    <div class="form-check form-check-radio form-check-inline">
      <label class="form-check-label">
        <input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2"> 2
        <span class="circle">
            <span class="check"></span>
        </span>
      </label>
    </div>
   

I tryed combine with something like this

<?= $this->Form->radio('gender', ['Masculine', 'Feminine', 'Neuter']); ?>

I think it works with setTemplates Link to cookbook

but i didn’t get it…

Thanks for your help!

Ole