Create CodeIgniter / AJAX Forms Instantly

8

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”.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

Comments

8 Responses to “Create CodeIgniter / AJAX Forms Instantly”
  1. 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

  2. Craig says:

    Looks like a great way to reduce bugs as well. Nice work.

  3. Shawn says:

    Hey man good vid, wow that looks so easy i think I can even do it!

  4. Bryce says:

    Hi. Is there anyway to use codeigniter forms from an external source ie from iframe

  5. aster1sk says:

    Not quite sure what you mean. Are you trying to post via iframe or trying to embed the app into an iframe?

  6. Carlos Mora says:

    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

  7. Dmitrii says:

    somewhere I can use a script?

  8. Dmitrii says:

    I find.
    formtorch.geekhut.org
    Thank you.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Security Code: