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

[eluser]Unknown[/eluser]
I am writing a program in CI,and have a problem with url

web/css/basic.css
web/images/
web/system/
web/index.php
web/system/application/views/

the files in views,how to write the url of css file

<link href="css/basic.css" rel="stylesheet" type="text/css" /> ???
#2

[eluser]Seppo[/eluser]
Load the URL helper. Use the base_url function:
Code:
<link href=”<?php echo base_url(); ?>css/basic.css” rel="stylesheet" type="text/css" />




Theme © iAndrew 2016 - Forum software by © MyBB