• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where should I place my resource files?


1. I'm wondering where is the best place to store images, css and JS files? Outside the system folder, inside it or inside the 'views' folder?

2. I tried to place it in all of the above locations and I got CI 404 Page Not Found error message when trying to access any image. I have a .htaccess to remove index.php as follow:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]

How can this be fixed?

Your help is greatly appreciated.

it was previously my problem too. But I did manage to solve it...

what I did is customize it a bit

/applications/default/ <--- default application

/resources/default/ <-- default resources (same name with application default)

I modified the welcome view into something of a short documentation about it


you could check-out a copy from the SVN


see index.php for more information Wink

hope that helps out, somehow Smile

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.