Welcome Guest, Not a member yet? Register   Sign In
A New Understanding of CI
#1

[eluser]Unknown[/eluser]
So I have been using code igniter for a couple of days... well no. i have been playing with it for a couple of days and now im going to start using it. I am developing a "Message Log" Application, and my config file contains things like the db info(host,uname,pass) as well as other information(company title, admin uname, other options).

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.

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.

Question: Where would i put my configs?
I believe they would go in the Controller and get passed to the model.

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.
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?)


So far im impressed with the things ive read about Code Igniter.


Messages In This Thread
A New Understanding of CI - by El Forum - 10-28-2007, 09:33 PM
A New Understanding of CI - by El Forum - 10-29-2007, 02:00 AM
A New Understanding of CI - by El Forum - 11-17-2007, 09:10 AM
A New Understanding of CI - by El Forum - 11-17-2007, 06:32 PM
A New Understanding of CI - by El Forum - 11-17-2007, 07:00 PM
A New Understanding of CI - by El Forum - 11-17-2007, 09:36 PM
A New Understanding of CI - by El Forum - 11-18-2007, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB