Create CodeIgniter / AJAX Forms Instantly
It gets very repetitive writing forms for clients – that’s why I decided to take the last hour to write this piece of fine code.
It takes whatever title you give a form object and creates a copy / paste dump for your view, controller and Javascript. It doesn’t handle checkboxes or select boxes – but that is because I find the form is not the time killer; it’s the Javascript and validation. The nice part is that most of the heavy lifting is done for you – plus you do not have to worry about spelling mistakes or silly syntax stuff because it is all duped in the script.
I’d like to pop this up on a subdomain after making it pretty – please comment if you think you will find this little app useful.
PS. During the recording I noticed a small error in the code – no need to comment, it is fixed now. The json_encoded array was returning a value that would not display in the error fields due to a mismatch in the name.
UPDATE : Check Out the Application Here!
I have fully tested the generated code and it works great, here’s a video demonstrating how to use “FormTorch”.




Hey Greg, nice work! I know myself I will find this quite useful and it will save some time. You’ve got me thinking of writing my own internal generator now
Cheers
Looks like a great way to reduce bugs as well. Nice work.
Hey man good vid, wow that looks so easy i think I can even do it!
Hi. Is there anyway to use codeigniter forms from an external source ie from iframe
Not quite sure what you mean. Are you trying to post via iframe or trying to embed the app into an iframe?
Hi. Great idea, i\’m learning a lot about AJAX using formtorch as reference.
A sugestion: Validation class is (as stated in the CI manual) deprecated in favor of Form_validation Class, that are almost the same thing, just a couple of details.
When I started with the code, I was confused about that fact because the validation class is not referenced in the online CI manual, so missinterpreted that and started using the form-validation help as reference, having lots of errors. Finally the torch\’s generated code was adapted to use form_validation and now it work fine.
Anyway, thanks a lot!
Regards
somewhere I can use a script?
I find.
formtorch.geekhut.org
Thank you.