• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use form_dropdown() function in view file

#1
[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?

#2
[eluser]xwero[/eluser]
Code:
<?php echo form_dropdown(); ?>

#3
[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).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.