[eluser]xwero[/eluser]
[quote author="brandenw" date="1193646811"]Question: Whats the difference between a view and a model?
A view is a template of sorts and a model passes the info from the db to be put into the model.[/quote]
View files are the only files that contain html, as a guide rule, so you can consider them as templates.
Models are classes where you make all the db queries, again as a guide rule.
CI doesn't force you to use this separation, it's possible you can put all the above code in a controller function or a library but to make your code reusable and easy to maintain it's best you follow the MVC pattern
[quote author="brandenw" date="1193646811"]Question: If i am correct above, then whats goes in the controller?
All of my information would be in the view/models, and then no reason for the controller.[/quote]
Using CI you can't exclude controllers because everything is routed to build pages through controllers. You have to look at a controller like a policeman regulating traffic. Users of your website want to go somewhere and the controller gives you the permission to go there. Sometimes to get some information you have to ask directions (forms) and then the controller shows you where to go.
To make it short the controller is the glue between the model and user actions and the view. You call the model methods in your controller to display that data in your view file.
[quote author="brandenw" date="1193646811"]Question: Where would i put my configs?
I believe they would go in the Controller and get passed to the model.[/quote]
If you have a lot of config values you can make an extra config file in the application/config directory and autoload it or you can set items in your controller. The last method has it's use if for instance there are many different configuration values per user or if you want to change the language of the site.
You can add the config values to the config.php file but then you have to check if there aren't changes in the config.php if you update to a newer CI version.
[quote author="brandenw" date="1193646811"]Question: Where would i put all of my resouces?
CSS,JS,Images,Flash. Normally i would have a /style and /js and /images folder at document root. [/quote]
you can do the same as you done before, even if you put CI in a non-public directory on your server.
[quote author="brandenw" date="1193646811"]Question: Whats the best way to do Authentication with CI?
I want to use Sessions and cookies. I think i should use freakAuth from my reading. but how to i implement freakAuth? (or is that outside the realm of CI and i should go to freakAuth and find that out?)[/quote]
There are several authentication libraries, you should check them to find the right one for you. Speaking for myself i find freakAuth a bit overwhelming and i'm not sure i would use all the features. But there is a good support for the library so any questions you have about it will be answered.