Welcome Guest, Not a member yet? Register   Sign In
Tutorial - Use new table
#8

(This post was last modified: 11-20-2017, 06:37 PM by JeffreyB. Edit Reason: my mistake - cant count )

(11-19-2017, 05:06 AM)InsiteFX Wrote: As I mentioned above CodeIgniter accesses the table through the model.

So if you create a MY_Model with general database methods all you need to do
is change the table name in the methods like the code I gave you.

If you create a getAll() method it will get all records from any database table
if you just change the table name in the method.

Man....three days of slogging through some of the worst code (mine!) and I ended up re-installing the entire CI Tutorial again. Iteration Code10 now lol. The good news is, it is making more sense now. Every time I read the tutorial (slowwwwwwwly) I pick up something, or it is sinking in better. Plus I get to see a few items where maybe the instructions could have been clearer, (although they are pretty good) and I just happened to fluke into the right setup in a couple of my earlier interations.

 My apologies for my density. I think I am making progress. Thanks for all your help. Smile
Reply


Messages In This Thread
Tutorial - Use new table - by JeffreyB - 11-18-2017, 09:34 AM
RE: Tutorial - Use new table - by Wouter60 - 11-18-2017, 12:26 PM
RE: Tutorial - Use new table - by JeffreyB - 11-18-2017, 08:56 PM
RE: Tutorial - Use new table - by JeffreyB - 11-18-2017, 09:00 PM
RE: Tutorial - Use new table - by InsiteFX - 11-18-2017, 12:39 PM
RE: Tutorial - Use new table - by Wouter60 - 11-19-2017, 12:52 AM
RE: Tutorial - Use new table - by InsiteFX - 11-19-2017, 05:06 AM
RE: Tutorial - Use new table - by JeffreyB - 11-20-2017, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB