Why is form_dropdown not named form_select? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Why is form_dropdown not named form_select? (/showthread.php?tid=63522) |
Why is form_dropdown not named form_select? - Martin7483 - 11-09-2015 Hi, Simple question. Why is the form_dropdown method not named form_select? All the available form helper methods that generate a form input are named after the element that they represent. Except for the select element. What is the reason for this? - Martin RE: Why is form_dropdown not named form_select? - arma7x - 11-09-2015 Maybe called 'form_dropdown' because the behavior of html select tag. When user click, it dropdown list of choices. ? RE: Why is form_dropdown not named form_select? - Martin7483 - 11-09-2015 (11-09-2015, 11:27 AM)arma7x Wrote: Maybe called 'form_dropdown' because the behavior of html select tag. When user click, it dropdown list of choices. ? That is what I was thinking, but it does not match with the rest of the method naming. I always start typing form_sel... and then get reminded that it's not form_select but form_dropdown. So I have now added an alias to a MY_form_helper. IMO I think it makes more sence to name it form_select, and not form_dropdown. So maybe an alias should/could be added to the next version? RE: Why is form_dropdown not named form_select? - Narf - 11-09-2015 Somebody, years ago, liked "dropdown" better than "select". As much as I wish that everything is done for a reason, that's just not always the case. RE: Why is form_dropdown not named form_select? - skunkbad - 11-09-2015 PHP Code: <?php RE: Why is form_dropdown not named form_select? - Martin7483 - 11-09-2015 (11-09-2015, 06:20 PM)skunkbad Wrote: Thanks for that, but I already added that exact piece of code Quote:So I have now added an alias to MY_form_helper. |