• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serve all content (images/css/js/etc) through index.php

Is this possible in CI?

I require this so that I can use permissions checks before serving private images/pdfs/etc.

Also so i could embed php in my css and js files.

Thanks in advance.

Yes you can. Just need to set up your .htaccess appropriately, and make sure, when you send your static files to the browser, that they have the proper header types and such.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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