Showing posts with label setting base url. Show all posts
Showing posts with label setting base url. Show all posts

Friday, September 29, 2017

How to set base url in codeigniter

Hello Friends Today We Will Discuss about the How To

Setting Base URL Codeigniter



First We can Config autoload php page in the application-->Config Folder

Change that Helper File

$autoload['helper'] = array(); Instead of the Code Place Below Code

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


Config.php page place the  code $config['base_url']= '';

Instead of that code place these code

$path = "http://" . $_SERVER['HTTP_HOST'] . str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

$config['base_url'] = $path;



Detail Image Description Can U See Below :

Step1 : This Can Be Placed In the Config.php Page






Step2 : This Can Be Change autoload.php Page 




Step 3: This Is After Config Path Can Be Change Out Put Can See 






Share:

Popular Posts

Blog Archive