If Only I Knew That!

Webby things that could save you time

Archive for April, 2009

Switching codeigniter profiler on/off globally

with 2 comments

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


Now all I have to do is change the value in the application config to enable/disable profiling globally

Written by daveganley

April 15th, 2009 at 2:06 pm

Posted in Codeigniter

Tagged with , ,

Setting up Codeigniter

with 11 comments

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:

  1. Download CI and upload to hosting environment
  2. Rename ‘system’ directory
  3. Move ‘application’ directory to public accessible directory
  4. Upload and modify index.php
  5. Add .htaccess to remove index.php from URL’s
  6. Modify ‘config.php’ for domain and remove of index.php form URL’s
  7. Add ‘application.php’ specific config file
  8. Modify ‘database.php’ config for dev/staging/production
  9. Modify the autoload config for regularly used libraries, helpers and application config file

Click to continue reading “Setting up Codeigniter”

Written by daveganley

April 13th, 2009 at 1:00 pm

Posted in Codeigniter

Tagged with , , , ,

Powered by CDN Rewrites