• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Started with CodeIgniter 4 PreAlpha 1

#11
(02-20-2017, 03:10 PM)baselbj Wrote:
(06-26-2016, 09:24 PM)kilishan Wrote: One thing I forgot to mention in that post, but that is worth knowing is that the default environment is now "production" to save any accidents when pushing to a live site. To change the environment to development, the best thing is to edit the .htaccess file (if using Apache) that came with the download. Toward the top is a line like:

Code:
# SetEnv CI_ENV development

Uncomment that line and you're good to go.

How to do this in nginx?

Code:
fastcgi_param CI_ENV development;
Reply

#12
(02-21-2017, 03:10 AM)Narf Wrote:
(02-20-2017, 03:10 PM)baselbj Wrote:
(06-26-2016, 09:24 PM)kilishan Wrote: One thing I forgot to mention in that post, but that is worth knowing is that the default environment is now "production" to save any accidents when pushing to a live site. To change the environment to development, the best thing is to edit the .htaccess file (if using Apache) that came with the download. Toward the top is a line like:

Code:
# SetEnv CI_ENV development

Uncomment that line and you're good to go.

How to do this in nginx?

Code:
fastcgi_param CI_ENV development;

Thank You Smile
Reply

#13
I've played with CI4 and I don't know where is the proper place to mention mistakes in the documentation and errors in CI itself. A few problems that I've found:

- The correct place of .env files is not the /application directory, but the root directory (where the composer.json lives).
- $_ENV global variable and getenv function works normally, but if I try to use them in the Database config I get the following error:
Fatal error: Constant expression contains invalid operations in /media/sf_code/ci4.dev/gitroot/ci4/application/Config/Database.php
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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