Welcome Guest, Not a member yet? Register   Sign In
form_helper - bug or unwanted feature?
#11

[eluser]xwero[/eluser]
To make my view on things clearer, i think the input, button and textarea generating functions should have no new line and the others should. This is a how you would write the source code if you do it yourself.

Another example why the new line shouldn't be added to the input tag:
Code:
<p>&lt;?php echo form_radio($data).form_label('Yes','confirm') ?&gt;</p>
// produces
<p>&lt;input type="radio" name="confirm" value="accept" checked="checked" style="margin:10px" /&gt;
<label for="confirm">Yes</label></p>
#12

[eluser]Derek Allard[/eluser]
@Bogdan: I was just joking - didn't take it that way at all, and @m4rw3r: touche! Wink

We're all on the same page here. Newlines will be coming out of single element form items, and I'll make some judgement calls about a few other things. I'll try to find time to make this happen in the near-ish future. Great suggestion, and great clarifying examples xwero. Thanks All!




Theme © iAndrew 2016 - Forum software by © MyBB