Directory structuring and other questions

I am building my first CI application and have been working on it for a while now and was wondering what would be a good way to structure my application with regards to placing images,css and scripts?

at the moment I have my application structured

  / js
  / tinymce
  / etc...
  / application
  / etc...

Is this a suitable approach? and how could I make these folders secure against direct access?

Another question is regarding using Kae's File Manager ( which I am trying to integrate with TinyMCE.

I have set it up using absolute pathing for the upload directory and a absolute URL for the get.php which will pull the files out of the directory however this works fine when editing in tinymce in the admin page (index.php/admin/home). But when displaying on the front end (index.php/home) the path is completely messed up. <img src="../../../scripts/kfm/get.php?id=1" alt="401.jpg" />

Thank you in advanced.

Here's a nice guide to structuring your app/site:

Then you can point your server to public_html while all your source code lives outside.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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