Organise you CodeIgniter setup
When I start a new project with CodeIgniter (CI) i start to organize everything.
The original setup is something like this:
project/
application/
system/
index.php
I don't like that at all.
This is my way!
project/
application/
system-2-1-3/
htdocs/
index.php
Why?
If your base-folder is htdocs, it's no longer possible for the users to have access to your application and systems folder.
And the renaming is so that I can easily switch between two versions back and forth (and keep track of what version I'm currently using).
The paths to your application and system-folder are changed in index.php
Written by Gustav Westling
Related protips
1 Response
Yeah, also my way is putting CI clone to the vendors/ci.
And set 'system' folder path to this clone 'system'.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#