CodeIgniter Forums
Auto Generate Form Fields - 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: Auto Generate Form Fields (/showthread.php?tid=33887)



Auto Generate Form Fields - El Forum - 09-11-2010

[eluser]derekmichaeljohnson[/eluser]
I've added my first contribution to the wiki, and I'm anxious to see what you guys think.

http://codeigniter.com/wiki/Auto_Form_Fields/

It's a form helper which creates your form fields based on your db table fields with little (if any) configuration required. It's certainly not perfect, and may be a bit too tailored to my own needs, but I'm sure some of you will find it of use.

Suggestions for improvement are eagerly anticipated.

Note: you might think of this as the opposite of using something like Doctrine, which generates your database tables/fields for you. I haven't quite warmed up to that yet, and have created this as an alternative.