CodeIgniter problem after upload to hosting |
Base URL should be absolute, including the protocol:
$config['base_url'] = "http://somesite.com/somedir/"; If using the URL helper, then base_url() will output the above string. Passing arguments to base_url() or site_url() will result in the following (assuming $config['index_page'] = "index.php";: echo base_url('assets/stylesheet.css'); // http://somesite.com/somedir/assets/stylesheet.css echo site_url('mycontroller/mymethod'); // http://somesite.com/somedir/index.php/my...r/mymethod |
Messages In This Thread |
CodeIgniter problem after upload to hosting - by Griwen - 04-06-2018, 03:55 AM
RE: CodeIgniter problem after upload to hosting - by php_rocs - 04-06-2018, 08:24 AM
RE: CodeIgniter problem after upload to hosting - by Griwen - 04-06-2018, 10:45 AM
RE: CodeIgniter problem after upload to hosting - by jreklund - 04-06-2018, 01:12 PM
RE: CodeIgniter problem after upload to hosting - by alamowais - 06-22-2018, 08:08 AM
|