Part of the EllisLab Network
   
1 of 4
1
Screencast: The Advanced Form Handling Series
Posted: 25 September 2008 04:57 AM   [ Ignore ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

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 III: Defining the form

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!

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 25 September 2008 09:39 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  801
Joined  04-20-2006

Hooo Colin this is a really good work here! What a valuable stuff you’ve done for the community here.
Would you mind doing a quick webpage with links to videos and also have them as a downloadable format so we can add that to CI Directory? (only a simple blank one with links it’s ok)

 Signature 

Un blog seo white-hat expliquant quelques techniques intéressantes sur le seo black hat

Ionize CMS - Webdesigner CMS based on CodeIgniter
www.ionizecms.com

My website: Webagency Too Pixel

Profile
 
 
Posted: 25 September 2008 10:49 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  57
Joined  03-18-2007

Woooo

This is gread example .....

Regards

Profile
 
 
Posted: 25 September 2008 01:14 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

We need tutorial in more depth. This is very good for newbie.

I can help in advanced tutorial if you need.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 25 September 2008 02:37 PM   [ Ignore ]   [ # 4 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Thanks everyone.

Too Pixel: I’ll get that together later and email or PM you.

Yash, the concepts are very simple, but they answer a lot of questions that pop up on these boards everyday with regards to validation and form handling. This series will get more advanced, specifically when we deal with other types of form controls, and hopefully anyone who sticks around for the conclusion will be able to grasp the benefits of handling forms in this way. This series is aimed a bit at newbies but also at anyone who hasn’t exactly found a good way to handle forms.

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 25 September 2008 03:03 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

yea I got that point.(already)

I like the idea so I said we can extend it.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 25 September 2008 03:08 PM   [ Ignore ]   [ # 6 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Understood, Yash. After the next few parts are completed I’ll be releasing the code so it will be possible for anyone to take it, use it, modify it, screencast about it, whatever one wishes.

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 25 September 2008 03:12 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

anyways again nice work done.

I’m planing to use your template library in next version of my blog.There is nothing about licensing.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 25 September 2008 03:20 PM   [ Ignore ]   [ # 8 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Yash, you are only bound by the CodeIgniter license when using Template.

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 25 September 2008 03:29 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

I’ve no problem with http://codeigniter.com/user_guide/license.html
This is what you mean.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 25 September 2008 03:40 PM   [ Ignore ]   [ # 10 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Yes. I decided not to license it on its own.

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
Posted: 25 September 2008 04:01 PM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

yea same with my product.Only for for popularity of product i want credit link should maintained.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 25 September 2008 04:02 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  426
Joined  10-22-2007

yea same with my product.Only for the popularity of product i want credit link should maintained.

 Signature 

Blogmer - Open source blogging software based on codeigniter
Blogmer Documentation
Web Design company and FREE PHP MySQL Webhosting

Profile
 
 
Posted: 26 September 2008 10:29 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  117
Joined  06-06-2007

Thanks Colin for an excellent series of videos. Luckily I was building a form when this came along!

Thanks, and looking forward to more in the series.

Mei

 Signature 

Web Development in north Wales
mei.gwilym.net

Profile
 
 
Posted: 27 September 2008 12:17 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  280
Joined  06-11-2007

I enjoyed those screencasts, they have actually shown me how crappy i build my forms, i also found interesting the vehicle model that you created, up until now i have never used models before. Could you possibly do some screencasts on that topic?

I did find that you must have your microphone up a little too high as even with my volume turned down a fair bit i could still here the annoying sounds of a loud microphone.

Ray

Profile
 
 
Posted: 27 September 2008 02:58 AM   [ Ignore ]   [ # 15 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
Joined  07-27-2006

Thanks, Ray. And I apologize for the audio. Just talking into the built in mic in my laptop. Probably will keep it that way unless my brother leaves a proper mic in the office that I can snatch up.

If and when I do more screencasts, I want them to be focused on using CodeIgniter in efficient ways, beyond what you find in the User Guide. So basically, I don’t think I’ll do anything covering basic Model usage. (Someone has a great introduction to models on their site. Can’t remember whom right now…)

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
   
1 of 4
1