Created
January 28, 2012 16:28
-
-
Save twosixcode/1694931 to your computer and use it in GitHub Desktop.
Global variables for current uri and current url in ExpressionEngine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment