Archive for April, 2009
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
Codeigniter URI routing to give impression of directories
I recently had to create a codeigniter site with three main sections and two of the sections needed to appear in directories in the URL’s
- The main site
- Backend user dashboard
- Backend user admin
Click to continue reading “Codeigniter URI routing to give impression of directories”
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