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”.
This is a great technique for use with large forms with many values you need to save. It can get in the way if you need individual validation for each value – however it can save a whole ton of time when submitting any number of form fields.
The video isn’t super high quality so I have attached the source here.
Two CodeIgniter developers will be joining us for July’s Screencast – A spectacular C++ also PHP master Mr. Weston and of course myself. This month’s topic will be JQuery and Codeigniter which I assume will draw a crowd as it is a quickly emerging now that CI has really exploded in popularity.
We have room for 18 participants and would love to know what the audience (meaning you) wants to discuss specifically.
I stopped sleeping as soon as I took up this project – here’s another update for the beta release coming soon!
We can now edit contact info on the fly as well as delete without page refresh. Friendlier auto-add feature for new contacts and I am sure there is other stuff I am missing.
Have rolled this one out on several machines – I am confident this is the last modification to the database – updating will be much simpler in the future.
This is getting REALLY fun to work with! I hope you like what I have done.


