Welcome Guest, Not a member yet? Register   Sign In
General question about using a helper
#1

[eluser]Unknown[/eluser]
Hi, I am very new to both using an MVC and CI.

Is there a good reason why I would do this in my view:

<?= form_label('First name:', 'fname'); ?>

Instead of:

<label for="fname">First Name:</label>

In simple cases like this I don't understand why I wouldn't just leave my code as straight up html. What are the advantages? Would it be something that would make more sense in larger applications where functions are building forms? My site is pretty basic, so all of the forms are being custom built.




Theme © iAndrew 2016 - Forum software by © MyBB