Welcome Guest, Not a member yet? Register   Sign In
base_url
#1

[eluser]-spy-[/eluser]
i use the code below to link to my CSS file..

<link href="<?=base_url()?>css_style.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url();?>css_style.css" rel="stylesheet" type="text/css" />

but an error occured..

unknown function base_url()...

is there anything wrong?
#2

[eluser]syntax error[/eluser]
Have you tried placing a semi-colon (Wink after the base_url() ?
#3

[eluser]Colin Williams[/eluser]
I believe you need the URI Helper loaded.
#4

[eluser]gtech[/eluser]
[quote author="Colin Williams" date="1197561237"]I believe you need the URI Helper loaded.[/quote]

yes you do, you can autoload this as its a usefull helper to have by adding the following into the config/autoload.php

Code:
| -------------------------------------------------------------------
|  Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
|    $autoload['helper'] = array('url', 'file');
*/

$autoload['helper'] = array('url', 'form');




Theme © iAndrew 2016 - Forum software by © MyBB