Codeigniter ultimate input field set

// Input field name
$data['name'] = 'title_lv';

// Input field id = field name
$data['id'] = $data['name'];

// Input filed value
$data['value'] = set_value($data['name'],$row->$data['name']);

// Placeholder with language suport where placeholder is placeholder_ plus field name/id
$data['placeholder'] = $this->lang->line('placeholder_'.$data['name'])

// Print actual label with language suport where label is label_ plus field name/id
echo (form_error($data['name']) != '') ? form_label(form_error($data['name']),$data['name']) : form_label($this->lang->line('label_'.$data['name']),$data['name']);

// Print actual input field with all $data array parameters
echo form_input($data);
Processing your request, Please wait....

No Responses to “Codeigniter ultimate input field set”

Comments (Your Comments)

Leave a Reply

You must be logged in to post a comment.