Download and Install Latest CodeIgniter Framework:
You can Download and Install the Latest CodeIgniter Framework source code for the CodeIgniter framework is accessible on the official CodeIgniter site. In the event that you need to download the most recent version of the framework, at that point you ought to do it from the official page.
Step 1) Open the following URL in your browser https://codeigniter.com/ to download the latest version of CodeIgniter.
Step 2) Unzip CodeIgniter package.
Downloaded CodeIgniter that is available in zip format. Copy it and put it in your htdocs folder. Unzip and rename it. We are naming it as CodeIgniter.
Step 3) CodeIgniter Welcome Page
On browser write this path -> localhost/CodeIgniter/ (after localhost type name of the folder that you unzipped). If the above screenshot view appears then it means your Codeigniter is successfully installed.
We have successfully installed CodeIgniter now let’s see the configuration directory
The configuration directory is located in application/config
In application/config directory you will get below files:
CodeIgniter Configurations
let’s now make some of the most used one settings in CodeIgniter
Open application/config/config.php
Base URL
$config[‘base_url’] = ”;
Sets the base URL. If its blank then CodeIgniter will set it for you automatically. If you want to be explicit about your base URL, then you can use the something like the following
$config[‘base_url’] = http://localhost/codigniter;
HERE,
Other settings
How to remove index.php in CodeIgniter
CodeIgniter is an MVC framework. It means your application has an only single entry point and which is index.php it means you can access your application through index.php. It does not matter what URL you access. In your application, all things go through using index.php. By default, index.php is shown in the URL as shown in the example below
codeigniter.com/index.php?q=post
The above URL looks long and awkward. The good thing is you can configure CodeIgniter to remove that.
Open application/config/config.php and Locate the following line
$config[‘index_page’] = ‘index.php’;
Set it to the following
$config[‘index_page’] = ”;
Add the following code in .htacess file :