I m new to codeigniter developement and want to know that is it necessary to use codeigniter’s built in form helper methods. Can I use traditional html code means instead of using this code
<?php
$data = array(
'name' => 'username',
'id' => 'username',
'value' => 'testval',
'maxlength' => '100'
);
echo form_input($data);
?>
for displaying text field can I use
<input type='text' name='username' id='username' value='testval' maxlength='100'></input>
What is advantages/disadvantages of using codeigniter’s methods.
Thanks in advance.
Yes you can definitely use traditional html code for form elements. For pro’s and con’s please refer:
Does it make sense to use Codeigniter form helper?
Form Helper: Any other benefit?