current_path()
request_path()可以参考如下的文章:
下面的是老方法:
1.
drupal_get_path_alias(request_uri())
2.
$current_path = drupal_get_path_alias($_GET["q"]);3. $current_url = 'http://' .$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI'];
本文共 268 字,大约阅读时间需要 1 分钟。
current_path()
request_path()可以参考如下的文章:
下面的是老方法:
1.
drupal_get_path_alias(request_uri())
2.
$current_path = drupal_get_path_alias($_GET["q"]);3. $current_url = 'http://' .$_SERVER['HTTP_HOST'] .$_SERVER['REQUEST_URI'];
转载于:https://my.oschina.net/mashixin/blog/282285