It’s gonna be a form tutorial
- Posted by dlib on March 20th, 2008 filed in Form tutorial, Tutorials
In my previous post I asked for suggestions for a tutorial. My expectation was a tutorial on ORM relationships but there was a general consensus towards a tutorial of forms and validation. I’ll cover the ORM relationships in some mini-tutorials in the future, I think that’s easiest.
The forms and validation tutorial I will probably cover in more than one post. I’ve set myself several goals of what the tutorial should cover. The end result for the tutorial is a validating form with database inserts and updates using ORM. The first goal is that I’ll utilize several methods to roughly accomplish the same end result, I’ll use Kohana’s new validation library, Forge and my very own Formation to do validation and if applicable generate the forms. I do intend to use each method’s strengths to give you the picture of which approach might suit you best.
I’ll use ORM, Forge and the new validation library as they are currently available in svn. I will try to limit the amount of own libraries using the MY_* syntax but if I do I’ll supply them. Regarding uploads and setting relationships in the form, the tutorial would become rather big if I included this. I hope to cover these topics in a follow-up.
The form we’ll be trying to create needs to do a couple of things:
- Name field - all names should be capitalized and names cannot be longer than 50 characters
- Email field - must satisfy as an email
- Checkboxes for food preference( pizza, spaghetti, French fries and Sauerkraut)
- Textarea - for comments
- Submit button
I’ll save the food preferences as a serialized array in the database to avoid complexities of relationships in the form. As stated above, I hope to cover this at a later stage. The goal should be for new users to understand what’s happening so we better take one step at a time.
The forms should be reusable for the edit and the insert method in the controller.
I hope to finish the tutorial sometime this week.
Edit: Working on the tutorial I decided to split it over several different posts. It’s proven to be quite some work. I’ll first do simple inserts with forms.
free viagra
buy viagra online
generic viagra
how does viagra work
cheap viagra
buy viagra
buy viagra online inurl
viagra 6 free samples
viagra online
viagra for women
viagra side effects
female viagra
natural viagra
online viagra
cheapest viagra prices
herbal viagra
alternative to viagra
buy generic viagra
purchase viagra online
free viagra without prescription
viagra attorneys
free viagra samples before buying
buy generic viagra cheap
viagra uk
generic viagra online
try viagra for free
generic viagra from india
fda approves viagra
free viagra sample
what is better viagra or levitra
discount generic viagra online
viagra cialis levitra
viagra dosage
viagra cheap
viagra on line
best price for viagra
free sample pack of viagra
viagra generic
viagra without prescription
discount viagra
gay viagra
mail order viagra
viagra inurl
generic viagra online paypal
generic viagra overnight
generic viagra online pharmacy
generic viagra uk
buy cheap viagra online uk
suppliers of viagra
how long does viagra last
viagra sex
generic viagra soft tabs
generic viagra 100mg
buy viagra onli
generic viagra online without prescription
viagra energy drink
cheapest uk supplier viagra
viagra cialis
generic viagra safe
viagra professional
viagra sales
viagra free trial pack
viagra lawyers
over the counter viagra
best price for generic viagra
viagra jokes
buying viagra
viagra samples
viagra sample
cialis
generic cialis
cheapest cialis
buy cialis online
buying generic cialis
cialis for order
what are the side effects of cialis
buy generic cialis
what is the generic name for cialis
cheap cialis
cialis online
buy cialis
cialis side effects
how long does cialis last
cialis forum
cialis lawyer ohio
cialis attorneys
cialis attorney columbus
cialis injury lawyer ohio
cialis injury attorney ohio
cialis injury lawyer columbus
prices cialis
cialis lawyers
viagra cialis levitra
cialis lawyer columbus
online generic cialis
daily cialis
cialis injury attorney columbus
cialis attorney ohio
cialis cost
cialis professional
cialis super active
how does cialis work
what does cialis look like
cialis drug
viagra cialis
cialis to buy new zealand
cialis without prescription
free cialis
cialis soft tabs
discount cialis
cialis generic
generic cialis from india
cheap cialis sale online
cialis daily
cialis reviews
cialis generico
how can i take cialis
cheap cialis si
cialis vs viagra
levitra
generic levitra
levitra attorneys
what is better viagra or levitra
viagra cialis levitra
levitra side effects
buy levitra
levitra online
levitra dangers
how does levitra work
levitra lawyers
what is the difference between levitra and viagra
levitra versus viagra
which works better viagra or levitra
buy levitra and overnight shipping
levitra vs viagra
canidan pharmacies levitra
how long does levitra last
viagra cialis levitra
levitra acheter
comprare levitra
levitra ohne rezept
levitra 20mg
levitra senza ricetta
cheapest generic levitra
levitra compra
cheap levitra
levitra overnight
levitra generika
levitra kaufen
March 20th, 2008 at 2:46 pm
Name, email, textarea is too simple. Maybe add image upload (like avatar - upload and resize to 80×80). Personaly i hate ORM so i hope that tutorial show me how to do this in normal way
Thank you for your time. Good job!
March 20th, 2008 at 3:22 pm
I think I’ll handle image uploads in a follow-up, I have not yet any real usage for image handling in my projects so it will be quite a hassle for me to get properly acquainted with it.
I chose ORM because it can keep me on the right track of explaining forms and validation. Otherwise I’d have to thoroughly explain models as well. Again, this may be addressed in future posts but I’d like to keep this tutorial short and comprehensible.
As I am writing this tutorial it already is quite a lot of work so I’d rather split the task over several posts
March 20th, 2008 at 4:31 pm
cool! Can’t wait to see it! By the way, your entries feed seems to be broken.
March 20th, 2008 at 4:51 pm
This sounds great! I’m looking forward to it. As you mentioned above, this could be an excellent base for future tutorials to build upon — you could expand upon the same views and forms in this tutorial to integrate uploading, relationships, models, etc. for future articles.