Welcome Guest, Not a member yet? Register   Sign In
Best way to find the system and application folders above the web root in CI3?
#3

(09-26-2018, 04:14 PM)ciadmin Wrote: Take a look at hopw we are doing it in CI4 ... https://bcit-ci.github.io/CodeIgniter4/c...cture.html

Yes, I realise that in CodeIgniter 4 this will be something of a non-issue, since it's separated out by default by giving it it's own folder called 'public'. Looking at the code, it seems that you're just using ../ to find the directory above. I did that as a relative path and it behaved oddly for me when it came to deploy my application. By appending it to the end of the absolute path to the front controller though, that might fix a few things.

I can't wait for version 4, by the way. Any news on the release date?
Reply


Messages In This Thread
RE: Best way to find the system and application folders above the web root in CI3? - by ItsSeaJay - 09-27-2018, 01:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB