Directory structuring and other questions

#1
[eluser]inverse.chi[/eluser]
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

Code:
/
css
scripts
  / js
  / tinymce
  / etc...
images
system
  / application
  / etc...
uploads


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 (http://kfm.verens.com/) 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.

#2
[eluser]wabu[/eluser]
Here's a nice guide to structuring your app/site:

http://codeigniter.com/wiki/Better_Server_Setup_for_CI/

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-2019 MyBB Group.