need autofill function in view |
The easiest way is to gather all the field data you need in the controller and then pass it to the view.
Assuming the controller calls a model that returns a $user_data object like this PHP Code: $data['first_name'] = $user_data->first_name; Then in the view PHP Code: <?= form_input([ Use the same idea for the last_name field. PHP Code: <?= form_input([ |
Messages In This Thread |
need autofill function in view - by karthick - 05-21-2019, 02:30 AM
RE: need autofill function in view - by dave friend - 05-21-2019, 10:24 AM
|