Welcome Guest, Not a member yet? Register   Sign In
using dreamweaver with codeigniter? please share your approach
#1

[eluser]niwtxehpa[/eluser]
Hi there,
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:
Code:
index.php
+system
  +application
    +views
      someview.html
+assets
  - images
  - css
  - js

Code:
<base href="http://localhost/WORX/SANDBOX/urlstest/"  />
<link href="assets/css/css.css" rel="stylesheet" type="text/css" media="screen" />

Code:
<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.

Thank you,
Emi


Messages In This Thread
using dreamweaver with codeigniter? please share your approach - by El Forum - 10-22-2008, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB