Now we can actually create our model and some users. We don’t want to store our users passwords in plain text in our database and so we will
So we have our controller, but we don’t have any users or any way to check a user. We also need to configure CodeIgniter to use sessions so that you don’t have to login to every single page you visit. To do this we will need to edit the config files in the application/config directory.
So now that we have a basic understanding of what the different parts of CodeIgniter are, we can get down to writing our first controller. The login controller. As we don’t want just anyone being able to access our site.
CodeIgniter approaches web development with MVC in mind. MVC is a way of presenting data that keeps programme logic and presentation separate from each other. This means that there is little PHP scripting in your presentation pages, keeping them clean and focused on looks.
CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications.