How to configure the baseurl in CodeIgniter

This post explains about how to configure the baseurl in CodeIgniter in your localhost.

How to configure the baseurl in CodeIgniter by Anil Kumar Panigrahi

How to configure the baseurl in CodeIgniter by Anil Kumar Panigrahi

See the code:

In the application\config\ in that folder we have list of files., in that we have to modify the file is config.php

$config['base_url'] = "http://localhost/CodeIgniter/";


and helpers :

appication\config\autoload.php file we have to modify.

$autoload['libraries'] = array();

to

$autoload['libraries'] = array('database', 'session');

$autoload['helper'] = array('form', 'url');


Hope that it will be useful …

Anil Kumar Panigrahi

With more than 10 years experience in PHP and Founder of Anil Labs, a blog for PHP and related posts. contributed posts regarding CodeIgniter, CakePHP and Learn PHP online ... Contact : [email protected]

You may also like...

2 Responses

  1. October 5, 2013

    […] change the baseurl at this […]

  2. November 22, 2017

    […] the earlier posts we learned about how to create baseurl, custom library, sending email in Codeigniter. Now we can learn about how to read the config file […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.