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

[eluser]xxIdroxx[/eluser]
Hello, i have a problem with the function: base_url()
In a view i have this code:
Code:
<link href="<?php base_url();?>design/css/slider.css" rel="stylesheet" type="text/css" />
But when i am in a controller that isn't the default the function doesn't work and give me this link :
game/design... and not design/...

How i can fix it?
#2

[eluser]InsiteFX[/eluser]
Should be this:
Code:
<link href="<?php echo base_url('design/css/slider.css');?>" rel="stylesheet" type="text/css" />




Theme © iAndrew 2016 - Forum software by © MyBB