• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
writable folder

#1
Brick 
I very much welcome the concept of the writable folder.

But I have 2 suggestions.

1. I think this folder should be excluded from git, because its contents do not need to be version controlled. What's more: its contents can and most probably always will be different across different environments.

2. I think CI should be responsible for the creation of this folder upon first run. If i were to edit the location of my writable folder in Paths.php it should be created if non existent. Further more any model that makes use of this folder, may it be logs, session, uploads, ... Should be in charge of creating its own dedicated 'namespace' folder inside of the writable directory.
Reply

#2
1. The contents of "writable" subfolders are git excluded (see https://github.com/codeigniter4/CodeIgni....gitignore)

2. That could be a job for a post-install or post-update composer script, but if you use the "appstarter" then you already have the writable folder. Perhaps something only for the "framework" installer?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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