Archive for the ‘staging’ tag
Switching codeigniter profiler on/off globally
In my post regarding setting up codeigniter, I created a debug setting in /application/config/application.php
/* |-------------------------------------------------------------------------- | Debug |-------------------------------------------------------------------------- */ $config['debug'] = TRUE;
in the constructor of every controller I add
$this->output->enable_profiler($this->config->item('debug'));
Now all I have to do is change the value in the application config to enable/disable profiling globally
Setting up Codeigniter
After setting up several codeigniter based sites with dev/staging/production environments, I thought I’d write up the steps I undertake.
A overview of the steps are:
- Download CI and upload to hosting environment
- Rename ‘system’ directory
- Move ‘application’ directory to public accessible directory
- Upload and modify index.php
- Add .htaccess to remove index.php from URL’s
- Modify ‘config.php’ for domain and remove of index.php form URL’s
- Add ‘application.php’ specific config file
- Modify ‘database.php’ config for dev/staging/production
- Modify the autoload config for regularly used libraries, helpers and application config file