[eluser]maria clara[/eluser]
You can place your images etc within separate folders too if you wish. The folders must be in the same directory as your index.php file though.
You should not be putting any static content anywhere in your application folder. I tend to setup my CI directory structure like so
Quote:My CodeIgniter App
|
+-- System/
|
+-- Application/
|
|
+-- lib/ (libraries used is stored here and that are called in the header also)
| |
| +-- images/
| |
| +-- js/
| |
| +- style.css
|
+- index.php
When loading say .js within my views for example I'd use
Code:
<XXscript type="text/javascript" src="<?=echo base_url()?>lib/js/js file"> </XXscript>
then in ur controller:
Code:
function js()
{
$this->load->view('js/js file.js');
}