![]() |
Problem with set_select( ) function - CI Validation Class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with set_select( ) function - CI Validation Class (/showthread.php?tid=8363) Pages:
1
2
|
Problem with set_select( ) function - CI Validation Class - El Forum - 05-21-2008 [eluser]ontguy[/eluser] This post has a simple rewrite for set_select in the CI Validation Class. http://ellislab.com/forums/viewthread/69956/ ...application/libraries/MY_Validation.php Code: function set_select($field = '', $value = ''){ this allows you to set the load a default in the controller: Code: $this->validation->myselect = "select1"; then in the view: Code: <select name="myselect"> I don't think it works with multiple selected items. Problem with set_select( ) function - CI Validation Class - El Forum - 07-19-2010 [eluser]vee[/eluser] this bug still not fix? |