Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Global variables for current uri and current url in ExpressionEngine
// 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
You can’t perform that action at this time.