use form_dropdown() function in view file - 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: use form_dropdown() function in view file (/showthread.php?tid=6765) |
use form_dropdown() function in view file - El Forum - 03-11-2008 [eluser]Unknown[/eluser] i am using form_dropdown() function in Controllers files for dropdown creation but i want to create dropdown in view file, How can i use this form_dropdown() function in view file? use form_dropdown() function in view file - El Forum - 03-11-2008 [eluser]xwero[/eluser] Code: <?php echo form_dropdown(); ?> use form_dropdown() function in view file - El Forum - 03-11-2008 [eluser]Seppo[/eluser] from_dropdown is a function, thereby it's defined globally... so you can use it anywhere (after loading the from helper, of course). |