If you are using dreamweaver for for your CI projects, please share your approach regarding urls for css, js, images inclusion.
I tested various solutions presented on the forum, but none of them works for me.
I want to:
- be able to preview my html files in dreamweaver, with images and css styles applied
- not be forced to use absolute paths ( I work locally and don’t want to modify all the paths when I move the files online).
- not use $this->config->item(base_url) - the preview in dreamweaver will not work
I had some success with the following approach:
<base href="http://localhost/WORX/SANDBOX/urlstest/" />
<link href="assets/css/css.css" rel="stylesheet" type="text/css" media="screen" />
<img src="assets/images/intercontinental.jpg" />
The above would work great; I would only change the base when uploading the site. In browser everything is ok. But… BUT not in dreamweaver wich seems to ignore (or not be able to process) the base tag.
Please show me your winning approach on this.