CodeIgniter introduces $_SERVER['CI_ENV']

On the 3rd of March last year (2012) ‘roberto-butti’ suggested using a server environment variable to control the value of CodeIgniter’s ENVIRONMENT. The full discussion on the issue can be found at GitHub. And in June Phil Sturgeon added logic for this in index.php (see commit). By using Apache’s SetEnvIf-directive in .htaccess it is possible to set conditional server environment variables. Let’s say you have three different server environments; production, testing, development and they all resides on different hostnames; www....

February 23, 2013 · 1 min · 178 words · Jonas

Use latest CodeIgniter in your project

The development branch of the PHP framework CodeIgniter resides on GitHub and can be cloned by anyone. This article will outline a suggestion on how to set up a project that is continuously based on the latest version available in the repository. I’ll explain how to create, develop and maintain your project through the following steps: Prepare your project area Fetch latest CodeIgniter Copy directories and files Start development of your project Update CodeIgniter Prepare your project area Create a directory that will hold your project and CodeIgniter:...

August 12, 2012 · 2 min · 380 words · Jonas