[eluser]yannyannyann[/eluser]
Hi,
I use the same kind of system.
But as I have a language system on my base_url() (which gives me either myurl.com/ or myurl.com/fr ) I use the site_url() method to access files, for example :
Code:
<link rel="stylesheet" type="text/css" media="screen" href="<?=site_url().PATH_CSS?>jScrollPane.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?=site_url().PATH_CSS?>styles.css" />
<link rel="stylesheet" type="text/css" media="screen" href="<?=site_url().PATH_CSS?>jquery.accessible-news-slider.css" />
and PATH_CSS is an constant (constant.php) that is pointing to "public/css/".
You could do the same structure, so you avoid rewriting all the time the path (if you have a lot of images)
Code:
<img src="<?=site_url().PATH_IMAGE?>image1.jpg" width="240" height="9">