/ Published in: PHP
URL: http://codeigniter.com/wiki/Automatic_configbase_url/
More info found in the link above, basically, you can replace the $config['base_url'] to the snippet below and you no longer need to set the base url. Useful for making your application more portable.
Expand |
Embed | Plain Text
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
Comments
Subscribe to comments
You need to login to post a comment.

excellent.