• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create textarea in CI ?

#1
[eluser]nencor[/eluser]
i got an error like this

Severity: Notice

Message: Undefined index: name

Filename: helpers/form_helper.php

Line Number: 264

here is my code

Code:
<?php $data = array(
                                'class' => 'textbox',
                                'id' => 'keterangan',
                                'cols' => '2',
                    );
                                echo form_textarea($data);
                    ?>

what went wrong ?

update : so textarea need 'name' parameter. solved

#2
[eluser]solid9[/eluser]
The variable 'name' in your array is missing.



Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.