Welcome Guest, Not a member yet? Register   Sign In
base_url() and url helper
#1

[eluser]elaniobro[/eluser]
Having issues with the config.php file and setting the base URL.

I currently have my config.php file setting my base pat as follows:
Code:
$config['base_url']    = "http://localhost:8888/www.example.com/com/5/system/application";

However when I use the url helper anchor():
Code:
<?= anchor('/thoughts/more/'.$row->id, 'read');?>

I get a 404:

The requested URL /www.example.com/com/5/system/application/index.php/thoughts/more/2 was not found on this server.


However, if I change the config to the following:
Code:
$config['base_url']    = "http://localhost:8888/www.example.com/com/5

Removing '/system/application' from the end of the base URL, the anchor() works properly, but no images/css/js etc.. works.

Any ideas?


Messages In This Thread
base_url() and url helper - by El Forum - 02-27-2010, 03:06 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:02 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:08 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:13 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:13 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:15 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:27 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:29 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:40 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:53 PM
base_url() and url helper - by El Forum - 02-28-2010, 04:58 AM
base_url() and url helper - by El Forum - 02-28-2010, 11:13 AM
base_url() and url helper - by El Forum - 02-28-2010, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB