[eluser]Michael Wales[/eluser]
Code:
< script type="text/javascript" src="/extjs/ext-all.js">< / script>
This is a relative link from your webroot: domain.com/extjs/ext-all.js
Personally, since I work on multiple apps at a time, I have directories underneath my webroot for each project. Like so:
htdocs
- blog
- classifieds
- client_1
- system (this is the CI framework)
So, when I reference CSS, JS, or images I use:
Code:
< script type="text/javascript" src="<?= base_url(); ?>assets/js/ext-all.js">
This way it looks for the file in:
htdocs/[the_app]/assets/js/