In the first
paragraph you know how to install it, in the second paragraph Codeigniter php frameworks will be show
you how to set the base url to automatically, you just have to change this
variable $config[‘base_url’] at config.php file into this text bellow:
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
These code will
generating base url to automatically, I think this code is very useful to you. So
you must try it. How can I tell you these code is useful? Because, if you use
the standard code of codeigniter, you should always change the “base url” configuration
every time you move your codeigniter application. I think enough for today, see
you in the next post of Codeigniter php frameworks.
No comments:
Post a Comment