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

[eluser]bohara[/eluser]
This code in my layout file
Code:
<link rel="stylesheet" href="<?=base_url()?>css/blueprint/screen.css" type="text/css" media="screen, projection">

Gives this error when output
Code:
Call to undefined function: base_url() in <b>/Library/WebServer/Documents/ci/system/application/views/layout.php

It stops ouput right after the page title and I only see the error message when I view source.

Not sure what i am doing incorrectly here?
#2

[eluser]Derek Allard[/eluser]
Are you loading or autoloading the url helper?
#3

[eluser]bohara[/eluser]
No, I will try that. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB