Welcome Guest, Not a member yet? Register   Sign In
Add the correct HTML attributes to the form helper
#5

(07-13-2022, 02:08 AM)ozornick Wrote:
PHP Code:
form_input([
  'name' => 'datebirth',
  'value' => set_value('datebirth'$dateBirth),
  'class' => 'form-control',
  'type' => 'date',
  'disabled' => empty($dateBirth) ? false true,
  'required' => false,
  'readonly' => false
])
// <input type="date" name="datebirth" value="" class="form-control" disabled="" required="" readonly=""> 

Cannot reproduce this.

It seems the feature to show boolean attributes has been since v4.0.0.
https://github.com/codeigniter4/CodeIgni...3ebc2af358
Reply


Messages In This Thread
RE: Add the correct HTML attributes to the form helper - by kenjis - 10-10-2022, 06:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB