Last Updated: February 25, 2016
·
1.205K
· gurrewe

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

1 Response
Add your 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 ·