Issue
I have code that I'd like to display:-
<div class="row form-group m-form__group m-login__form-sub">
<div class="col m--align-left">
<label class="m-checkbox m-checkbox--light">
<input type="checkbox" name="agree">I Agree the
<a href="#" class="m-link m-link--focus">terms and conditions</a>.
<span></span>
</label>
<span class="m-form__help"></span>
</div>
</div>
So how do I convert it using the FormHelper. Or how to create template for same?
Solution
Here i Mentioned cakephp Way of creating checkbox.Try it.Hope it Works.
<div class="row form-group m-form__group m-login__form-sub">
<div class="col m--align-left">
<?php echo $this->Form->input('agree', array(
'type'=>'checkbox','label'=>'I Agree The'));?>
<a href="#" class="m-link m-link--focus">terms and conditions</a>
</div>
Answered By - Manasa
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.