Created
May 21, 2013 07:12
-
-
Save victorpavlov/5618026 to your computer and use it in GitHub Desktop.
PHP: Drupal 7 URL variables
This file contains 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
<?php | |
//Drupal 7 URL variables | |
$GLOBALS['base_url'] => http://example.com/drupal | |
base_path() => /drupal/ | |
request_uri() => /drupal/documentation?page=1 | |
request_path() => documentation | |
current_path() => node/26419 | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment