CodeIgniter Forums
Auto Generate Form Fields - 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: Auto Generate Form Fields (/thread-33887.html)



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.