CodeIgniter Forums
ComboBox like - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: ComboBox like (/thread-55001.html)



ComboBox like - El Forum - 10-04-2012

[eluser]Dzemail[/eluser]
Please coud someone help
to have combobox like this
in

Araay(''=>'');

Combobox("2",Mrcedes);

ID and text


how from Model to read and to write in View


thanks if some one help me whith this



ComboBox like - El Forum - 10-04-2012

[eluser]ojcarga[/eluser]
Trying to understand, maybe this can help:
http://ellislab.com/codeigniter/user-guide/helpers/form_helper.html
Look for the subtitle named form_dropdown() and do exactly what it says and let us know what happen.

The thing about the model, let me know if I understood, you want to read the values in a voew from a model?

Guess you need to read about MVC dude,
http://ellislab.com/codeigniter/user-guide/overview/mvc.html

You use a controller to comunicate a view with a model, it is something like monkey-in-the-middle Smile but man, read the guide it is very useful

Cheers!