Welcome Guest, Not a member yet? Register   Sign In
Add a single database entry?
#3

[eluser]Friedebarth[/eluser]
[quote author="jalalski" date="1231271362"]You'll need to:
1. create a Model to handle the database connectivity
2. create a Controller to load the model, get the record with that id. This controller is where you can load the Form_validation helper and provide defaults if needed.
3. create a view (based on what you have above) which will display the record.

Your model will handle loading records, creating new ones and saving records.

HTH[/quote]

Well, I've got a controller which loads the database and a view that loads the controller, but somehow I don't unterstand the models (maybe cause there's no tutorial on them). Is there an example on them somewhere?


Messages In This Thread
Add a single database entry? - by El Forum - 01-06-2009, 06:10 AM
Add a single database entry? - by El Forum - 01-06-2009, 07:49 AM
Add a single database entry? - by El Forum - 01-06-2009, 08:17 AM
Add a single database entry? - by El Forum - 01-06-2009, 09:28 AM
Add a single database entry? - by El Forum - 01-06-2009, 01:13 PM
Add a single database entry? - by El Forum - 01-06-2009, 03:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB