kenjis / codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer
MIT License
377 stars 118 forks source link

application folder exists twice #15

Closed axelf closed 6 years ago

axelf commented 7 years ago

Why exists the application directory twice? It's in the root directory and then in vendor/codeigniter/framework/application. Do i need this second folder?

kenjis commented 7 years ago

Because CodeIgniter's repository layout is like that, and we install CodeIgniter as a Composer package. So we can update CodeIgniter system with composer update commnad.

You don't need vendor/codeigniter/framework/application. But Composer manages files in vendor directory. So it is better you don't touch them.

axelf commented 7 years ago

Thank you. Which folder will be updatet by composer? /application or vendor/codeigniter/framework/application ?

kenjis commented 7 years ago

vendor/codeigniter/framework will be updated. application in root folder is never changed.

This installer copies vendor/codeigniter/framework/application to application once, when you install. After that, if you update (run composer update), vendor/codeigniter/framework will be updated (if there is new version). But You did not use and will not use vendor/codeigniter/framework/application at all. Your code is only in application, not in vendor/codeigniter/framework/application.