Skip to content

Instantly share code, notes, and snippets.

@twosixcode
Created January 28, 2012 16:28

Revisions

  1. twosixcode created this gist Jan 28, 2012.
    7 changes: 7 additions & 0 deletions gistfile1.aw
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    // add to index.php

    // current_url and current_uri global variables
    $assign_to_config['global_vars'] = array(
    'current_url'=>'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],
    'current_uri'=>$_SERVER['REQUEST_URI']
    );