Hello Friends Today We Will Discuss about the How To
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
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
Step 3: This Is After Config Path Can Be Change Out Put Can See
0 comments:
Post a Comment