Welcome Guest, Not a member yet? Register   Sign In
base_url() stops executing
#1

[eluser]Maglok[/eluser]
I have used the base_url() in a lot of view stuff already and it usually works. Lately though it has been giving me a problem.

My config.php reads:

Code:
$config['base_url'] = "http://www.someurl.com/somedir/";

Then I tried referencing a stylesheet like this:

Code:
<link rel="stylesheet" href="<?php echo base_url(); ?>css/style.css" type="text/css" media="screen" />

That actually kills the generation of the site like so:

Code:
<html>
<head>
<title>Title</title>
<link rel="stylesheet" href="

When I then echo base_url() anywhere it stops when it gets to that point.

Something is fishy and I don't know what. I have had it work on this host before. I can also load the CSS in the example if I just create the url myself instead of using base_url(), but that would be quite sloppy.


Messages In This Thread
base_url() stops executing - by El Forum - 06-15-2009, 01:57 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:05 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:05 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:10 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:12 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:12 AM
base_url() stops executing - by El Forum - 06-15-2009, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB