This series lays out a standard approach to form handling in CodeIgniter that you can use again and again, keeping your controller methods clean, straight-forward and on-task. The series is broken up into 5 minute sections. I got through part 7 tonight and expect several more.
Here’s what’s available so far:
Part I: Overview of the application
Part II: Explaining the concept and principles of the approach
Part IV: Constructing the form view
Part V: Setting up validation in the add() method
Part VI: Handling errors and repopulating form fields
Part VII: Saving the submitted data
UPDATE: Download files
Coming up next, I’ll look at how we can apply our methodology to the edit form, we’ll look at handling other types of form controls (selects, radios, checkboxes), and finally we’ll conclude everything and look ahead to CI 1.7’s Form Validation library and see what implications it has on this proposed methodology.
Please excuse the mistakes, my voice, and anything you don’t like (ha! when doesn’t that make sense to request.)
Hope it helps some people out. Comments welcome!
