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

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


and helpers :

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

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

to

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

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


Hope that it will be useful …

Categories: CodeIgniter

2 Comments

What is CodeIgniter,how to install in local system? - Anil Labs · October 5, 2013 at 10:18 am

[…] change the baseurl at this […]

How to read the config file data in the application of Codeigniter - Anil Labs · November 22, 2017 at 7:17 am

[…] 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

Avatar placeholder

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