Standart for form_input and etc - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: Standart for form_input and etc (/showthread.php?tid=74990) |
Standart for form_input and etc - XTAZ - 12-04-2019 Hello! In my opinion, we must have standart for form_input. I want add class form-control to all inputs, I write this code: PHP Code: $defaults = [ Now I must write conditions, find class in $data, $extra, if finded $extra, I must write crutch for replace class=" to class="form-control, some will use ', some ", then somethings more will stop working... |