I have recently started using CodeIgniter, an MVC framework for PHP. I am no expert at the framework, but, I think it would be useful for me to explain useful bits of the framework as I find them: thus they will be from a beginner's perspective and someone who is new to the framework will be able to relate more with what I am saying.
Installation
Installation of CI is incredibly easy. The download link is on the front page of their website, www.codeigniter.com. The download comes in a standard zip file, and is less than a megabyte large!
Upon extraction you are presented with two folders and a few files.
The folder which we will be using the most is system. Index.php holds a few configuration settings that generally won't need changing, such as the name of the system folder. I will look into the user guide folder at a later stage.
The folder we need to open now is system, application, then config, and finally config.php.
We need to change the base_url string:
CODE
$config['base_url'] = "http://your-site.com/";

Make sure to remember the trailing slash.
Navigate to the url you entered and if you have entered the url correctly you should have the following in your browser!

Database Config
While we are in the config folder, let's set up the database config. Open up database.php in the config folder and change the following to your settings:

You are done! I will continue from this stage in a later post.

Sign In
Register
Help



MultiQuote



